ANE-Push-Notification: My App Crashed when recieving GCM Message

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>

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 20

Most upvoted 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