1

I find the parse documentation is little confusing when it comes to Android. I am sending notifications using Parse from a .NET background service. The service is calling Parse REST API

  • Install the device with deviceToken and deviceType
  • Send push notification to device once the previous step is successful.

This works beautifully with iOS device POST: 1/push

{  
    "deviceToken": "<big device token>",
    "deviceType": "android",
    "channels" : []
}

This says

{
    code: 114
    error: "deviceToken may not be set for deviceType android"
}

the documentation says, we need to have a unique installationId for Android device install uploads. How do I do this from backend? Which API should be used to get installation Id?

2 Answers 2

2

This is how you get the installation ID :

ParseInstallation.getCurrentInstallation().getInstallationId()

(Class Reference)

Sign up to request clarification or add additional context in comments.

1 Comment

Push is happening from server side and using .NET. The libraries parse have are client side libraries. That's why I am using REST API deliver notifications. But it's great to know what is meant by getInstallationId() and how it's wrapped under the hood
0

What I understand, Parse doesn't support android device installations using REST API; it supports from client side SDK.

https://www.parse.com/questions/android-device-installation-via-rest

Comments

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.