trycourier / courier-flutter Goto Github PK
View Code? Open in Web Editor NEWInbox, Push Notifications and Preferences for Flutter
Home Page: https://courier.com
License: MIT License
Inbox, Push Notifications and Preferences for Flutter
Home Page: https://courier.com
License: MIT License
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.
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
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
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.
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?
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.
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!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.