question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

My App Crashed when recieving GCM Message

See original GitHub issue

hi 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:closed
  • Created 10 years ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
esdeboncommented, Jun 2, 2014

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

0reactions
AmirSmartycommented, Jan 13, 2018

A Fix for firebase?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found