Comments (5)
if i dont handle notification from my side just have done subscription then how it will work ?
from connectycube-flutter-samples.
ENABLE AUTOMATIC NOTIFICATIONS FOR OFFLINE USERS IN CHAT
means to enable push notifications if a user is offline and receives a new chat message
ENABLE FCM "NOTIFICATION" PUSH TYPE FOR ANDROID
means to enable the 'Notification' type of the FCM for the chat push notifications. please follow the Firebase documentation about the differences between the 'Notification' and 'Data' types of FCM push notifications https://firebase.google.com/docs/cloud-messaging/concept-options#notifications_and_data_messages
you guys are using firebase fcm only for connectycybe notification righT?
no, the Connectycube platform supports the FCM, APNS, and APNS_VOIP push notifications
if i dont handle notification from my side just have done subscription then how it will work ?
if you want to delegate to the system the shoving of the notifications, you need to tick the ENABLE FCM "NOTIFICATION" PUSH TYPE FOR ANDROID
config
from connectycube-flutter-samples.
ok , i have enabled this option and successfully subscribed to channel from flutter and waiting for message in onMessageReceived in android native service , but when i send the chat message i am not getting messages.
although if i send from admin panel then i am gettting the notification . i am not able to find out the issue
from connectycube-flutter-samples.
@TatankaConCube , now i am getting from chatting but getting this crash and i researched but didnt find any solution , can u help ?
sendNotificationDataToFlutterSide: intent data = Bundle[{google.delivered_priority=high, message_id=6501ca00f7a887a5defc1457, google.sent_time=1694616065125, google.ttl=2419200, google.original_priority=high, extension={"message":"hello"}, user_id=10551474, from=425699151479, dialog_type=3, badge=3, sound=default, title=Richa Shah, locData={}, google.message_id=0:1694616065171371%a0a0f185a0a0f185, message=Richa Shah: hello, gcm.n.analytics_data=Bundle[mParcelledData.dataSize=100], dialog_id=64fb1f10bc7b59002f7ea144, ios_thread_id=64fb1f10bc7b59002f7ea144, collapse_key=com.bv.mainCourt}]
20:11:13.163 AndroidRuntime D Shutting down VM
--------- beginning of crash
20:11:13.181 E FATAL EXCEPTION: main
Process: com.bv.mainCourt, PID: 24377
java.lang.IllegalArgumentException: Unsupported value: 'Bundle[mParcelledData.dataSize=100]' of type 'class android.os.Bundle'
at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:297)
at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:285)
at io.flutter.plugin.common.StandardMethodCodec.encodeMethodCall(StandardMethodCodec.java:38)
at io.flutter.plugin.common.MethodChannel.invokeMethod(MethodChannel.java:119)
at io.flutter.plugin.common.MethodChannel.invokeMethod(MethodChannel.java:102)
at com.bv.mainCourt.MainActivity.sendNotificationDataToFlutterSide(MainActivity.kt:94)
at com.bv.mainCourt.MainActivity.onNewIntent(MainActivity.kt:47)
at android.app.Activity.performNewIntent(Activity.java:8321)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1517)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1530)
at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:3822)
at android.app.ActivityThread.handleNewIntent(ActivityThread.java:3829)
at android.app.servertransaction.NewIntentItem.execute(NewIntentItem.java:56)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
from connectycube-flutter-samples.
hmm, this exception comes not from our SDK but from your app at com.bv.mainCourt.MainActivity.sendNotificationDataToFlutterSide(MainActivity.kt:94)
, search for the issue on your app side
from connectycube-flutter-samples.
Related Issues (20)
- forground notification HOT 13
- data got cleared automatically HOT 7
- multiple dialogs are getting created for same users in group chat HOT 4
- Read message status HOT 20
- Voip kit is not working in terminated state HOT 7
- how to handle session expiration while chat is ongoing HOT 7
- Add existings users of my application to connetycube HOT 3
- Adding user to dialog which does not exist in user. HOT 21
- Seeking Guidance on Enhancing Video Quality and Layout in Flutter Video Calling App HOT 9
- Package name changes on application already on the connectycube hobby plan HOT 3
- Get unread count based on user HOT 2
- Flutter Web P2P call white screen HOT 5
- Multiple Device login in web for p2p calls HOT 4
- low audio volume when video calls connected across platforms HOT 1
- QUESTION - Is there any limitation on the duration of calls monthly? HOT 6
- issue with public group HOT 16
- p2p Call and Chat messanger in one application
- User Session Times Out and doesn't reconnect HOT 1
- Issue with ConnectyCube User Session Token Creation - "Unexpected Signature" HOT 23
- When internet is slow, getting a timeout log but not getting a callback HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectycube-flutter-samples.