티스토리 뷰

안드로이드 퀵스타트대로 따라 했는데
https://parse.com/apps/quickstart#parse_push/android/native/existing
에뮬레이터에서만 푸시 알림이 오고
실 기기에는 오지 않는 문제가 생겨
핵스트레스에 빠졌다가 겨우 방법을 발견하여 해결할 수 있었다.

AndroidManifest.xml 에 추가한
<receiver android:name="com.parse.ParsePushBroadcastReceiver" android:exported="false">
    <intent-filter>
        <action android:name="com.parse.push.intent.RECEIVE" />
        <action android:name="com.parse.push.intent.DELETE" />
        <action android:name="com.parse.push.intent.OPEN" />
    </intent-filter>
</receiver>
부분 중 <intent-filter> 의 자식요소로 아래와같이 2줄을 추가해주면 됨
<receiver android:name="com.parse.ParsePushBroadcastReceiver" android:exported="false">
    <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
        <action android:name="android.intent.action.USER_PRESENT" />
        <action android:name="com.parse.push.intent.RECEIVE" />
        <action android:name="com.parse.push.intent.DELETE" />
        <action android:name="com.parse.push.intent.OPEN" />
    </intent-filter>
</receiver>
댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함