My App Crashed when recieving GCM Message
See original GitHub issuehi guys…
I sent GCM message from my server, and it makes my application crash right after I sent it. I think there is no wrong with my server code, Think sth is wrong with my manifest. can someone give me an answer?
my manifest looks like this
<android> <colorDepth>16bit</colorDepth> <manifestAdditions> <![CDATA[ <manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="air.kr.elever.appElever.debug.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="air.kr.elever.appElever.debug.permission.C2D_MESSAGE" />
<application>
<receiver android:name="com.freshplanet.nativeExtensions.C2DMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="air.kr.elever.appElever.debug" />
</intent-filter>
</receiver>
<activity android:name="com.freshplanet.nativeExtensions.NotificationActivity"></activity>
<service android:name="com.freshplanet.nativeExtensions.LocalNotificationService"/>
<receiver android:name="com.freshplanet.nativeExtensions.LocalBroadcastReceiver" android:process=":remote"></receiver>
</application>
</manifest>
]]></manifestAdditions>
</android>
Issue Analytics
- State:
- Created 10 years ago
- Comments:20
Top Results From Across the Web
[Flutter FCM] App crashes when receiving message #7348
Steps to reproduce the behavior: Flutter run app with android emulator; Go to Firebase Console Cloud Messaging; Send new notification to android ...
Read more >React Native Android App crashes when receiving FCM ...
It turns out that when I get a notification, the app just stops working. The RemotePushController function seems to work, as soon as...
Read more >App Crashes when receiving FCM Notification on Foreground ...
Coding example for the question App Crashes when receiving FCM Notification on Foreground works on Background-kotlin.
Read more >Receive messages in an Android app - Firebase - Google
In some situations, FCM may not deliver a message. This occurs when there are too many messages (>100) pending for your app on...
Read more >Cloud Messaging | React Native Firebase
To install the "app" module, view the Getting Started documentation. ... native integration of Firebase Cloud Messaging (FCM) for both Android & iOS....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In the piece of log that you send, does not mention that your app is crashing, are you sure you are sending the data required?
you need send the values in a JSON:
contentTitle <---- this is the title contentText <---- this is the message tickerText <---- this is showed in the task bar
A Fix for firebase?