0

I can't figure out the problem for a long time. When registering a user, deviceToken and pushType are set as they should only after restarting the computer. If I just press wipe data, then deviceToken and pushType will be empty, although all other parameters are set as in previous times (correctly). Who knows what the reason for this behavior may be? Java code:

ParseInstallation installation = ParseInstallation.getCurrentInstallation();
    channels.add("News");
    installation.put("GCMSenderId", getString(R.string.firebase_sender_id));
    installation.put("channels", channels);
    installation.saveInBackground(new SaveCallback() {
        @Override
        public void done(ParseException e) {
            Log.i("Parse", "Installation have sent successfully!");
        }
    });
    ParseUser user = ParseUser.getCurrentUser();

Manifest

    <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.OPEN" />
            <action android:name="com.parse.push.intent.DELETE" />
        </intent-filter>
    </receiver>
<service
        android:name="com.parse.fcm.ParseFirebaseMessagingService"
        android:exported="false">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.