Giter VIP home page Giter VIP logo

courier-flutter's People

Contributors

fahadaminshovon avatar mikemilla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

courier-flutter's Issues

extend the CourierFlutterActivity class in MainActivity

According to documentation while setting up the Android app with Courier,

we somehow facing an integration issue regarding Step 5 according to the Android setup docs
https://github.com/trycourier/courier-flutter/blob/master/Docs/PushNotifications.md#:~:text=Change%20your%20MainActivity%20to%20extend%20the%20CourierFlutterActivity.

Since the courier_flutter plugin required MainAcitivty to extend the CourierFlutterActivity class in MainActivity.
But we are using another plugin local_auth for Biometric, And the local_auth plugin requires the MainActivity should be extended from FlutterFragmentActivity(),

What we should do in this situation.? We are already in Production, An earlier response would be really appreciated.

image

Push notification rendered but didn't sent to Mobile App, (APNs)

Hey,

we are facing issues while working with courier flutter, The issue we are facing while sending notifications from the backend to our device and it didn’t go through. It just shows an error at the encountered step. Please see the image below

4e41204e-e37c-42e3-8966-0336ff0361d3

And the Code we used to push the notification.

{ "channel": { "taxonomy": "push:apn" }, "configuration": "5bb0****-3f41-43f0-a4**8-396a****7a7e8", "provider": "apn", "willRetry": false, "errorMessage": "[{\"device\":\"9d50f4fcb77f1475d18acfb********9bb32f2943258cd571c494de6de1fde9\",\"status\":400,\"response\":{\"reason\":\"BadDeviceToken\"}}]" }

Meanwhile, the response we see on the Flutter terminal while running the code

`📡 New Courier API Request

URL: https://api.courier.com/users/8b3dac37-21a6-4051-a8bf-501782d9b35c/tokens/9d50f4fcb77f1475d18acfb7c3ce37389bb32f2943258cd571c494de6de1fde9

Method: PUT

Body: {"device":{"model":"iPhone","device_id":"B946EB38--4E7D--753018D28FCF","app_id":"com.fin*rs.gloency","manufacturer":"apple","platform":"ios"},"provider_key":"apn"}

Status: 204`

When we switch the keys from Prouction to Dev env everything working fine and we are recieving the notifications as well. But the moment we switch from Dev env to Prod env it didn’t go through from the backend side. Please let us know how to fix this issue.

Error creating a Notification Service

I was following along with this tutorial on setting up Courier in Flutter. Although I am getting an error with the Notification Service.

e: file:///Users/adityathakur/Desktop/firsthelp/android/app/src/main/kotlin/com/aditya/firsthelp/FirstNotificationService.kt:22:29 Unresolved reference: MainActivity

FAILURE: Build failed with an exception.

I noticed the project on live stream was created with Kotlin for Android enabled. But, my project structure for android is different. The MainActivity is in the kotlin folder (image attached) while it is inside the java folder on the live stream. Should I instead create my NotificationService inside the java folder?

Screenshot 2023-02-18 at 5 23 59 PM

Access Control Issue

public override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {

As this is open class, so the notification methods should also has open access control.
If anyone wants to override this method won't be able to.

I have faced this issue when I wanted to register other notification providers in our code base. Like Courier and Zendesk at same time.

Archive / Delete Notifications from courier inbox

Hey,

We are using Courier notification service for our project and we used the Flutter framework for the mobile app, our business requirement includes letting our customers achieve/Delete their inbox notifications, but somehow this plugin doesn’t provide any way to do this, we would like to request you if you can help us to implement this feature with or without this plugin, we are already in production and we would appreciate your earlier response. Thank you!

MissingPluginException when running app in web mode

When using this Library and running in web mode, it should simply not throw any errors, even if it is not meant to work in platforms other than iOS/Android.

Error: MissingPluginException(No implementation found for method isDebugging on channel courier_flutter_core)
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49  throw_
packages/flutter/src/services/platform_channel.dart 313:7                     _invokeMethod
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50            <fn>
dart-sdk/lib/async/zone.dart 1660:54                                          runUnary
dart-sdk/lib/async/future_impl.dart 147:18                                    handleValue
dart-sdk/lib/async/future_impl.dart 767:44                                    handleValueCallback
dart-sdk/lib/async/future_impl.dart 796:13                                    _propagateToListeners
dart-sdk/lib/async/future_impl.dart 567:5                                     [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 640:7                                     callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                              _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                               _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15           <fn>
Error: Unsupported operation: Platform._operatingSystem
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49     throw_
dart-sdk/lib/_internal/js_dev_runtime/patch/io_patch.dart 244:5                  _operatingSystem
dart-sdk/lib/io/platform_impl.dart 56:40                                         get operatingSystem
dart-sdk/lib/io/platform.dart 64:45                                              get _operatingSystem
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 872:8  get
dart-sdk/lib/io/platform.dart 153:47                                             get isIOS
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 872:8  get
packages/courier_flutter/courier_flutter_events_method_channel.dart 34:19        iOSForegroundPresentationOptions
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54               runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5               _async
packages/courier_flutter/courier_flutter_events_method_channel.dart 31:42        iOSForegroundPresentationOptions
packages/courier_flutter/courier_flutter.dart 72:10                              set iOSForegroundNotificationPresentationOptions
packages/courier_flutter/courier_flutter.dart 16:5                               __
packages/courier_flutter/courier_flutter.dart 32:54                              get shared
packages/learner_app_flutter/global_repository_provider.dart 96:21               <fn>
packages/provider/src/inherited_provider.dart 736:29                             get value
packages/provider/src/inherited_provider.dart 590:33                             get value
packages/provider/src/provider.dart 303:37                                       of
packages/provider/src/provider.dart 649:21                                       ReadContext.read
packages/learner_app_flutter/features/home/screens/home_screen.dart 64:50        <fn>
packages/flutter/src/scheduler/binding.dart 1289:15                              [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1227:9                               handleDrawFrame
packages/flutter/src/scheduler/binding.dart 942:7                                <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:19          internalCallback

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.