error setting up push notification using parse.com and android studio

后端 未结 1 870
一整个雨季
一整个雨季 2020-12-22 04:45

following the parse.com tutorial for setting up push notification on android (https://parse.com/tutorials/android-push-notifications). ide is android studio 0.8.9 on mac os

相关标签:
1条回答
  • 2020-12-22 05:18

    code fixed. think there were three issues:

    1) wrong syntax for adding comments. i was using the java/objective-c syntax:

    // this is a comment
    

    instead of xml way

    <!-- This is a comment --> 
    

    2) category should have been <category android:name="com.pixtas.sup" /> (thank you berserk)

    3) needed to add meta-data for notification icon. parse doc say this is optional, but it appears to be mandatory, at least in some cases. (Android - Unable to start receiver com.parse.ParsePushBroadcastReceiver)

    <meta-data
                android:name="com.parse.push.notification_icon"
                android:resource="@drawable/ic_launcher" />
    

    (thank you Ahmad Raza)

    0 讨论(0)
提交回复
热议问题