Questions tagged [instanceid]

40 questions
28
votes
3 answers

When do GCM Tokens Expire and What is the InstanceID?

Since GCM keeps getting updated, most of the resources I have searched seem outdated or unclear. Basically, I am confused over when the tokens and ID's expire. (For reference, I am working with Android.) From what I understand (and please correct me…
B. Roth
  • 359
  • 1
  • 3
  • 12
7
votes
2 answers

how to get InstanceID via ec2 api?

I need a function wich tells me the instanceID, I was searching here for a function, but you always need the id... Yeah and this is the problem. I'm not allowed to use the console, need to find it out via a script. I saw the AWS.MetadataService…
nova
  • 313
  • 6
  • 19
6
votes
3 answers

iOS Swift Firebase InstanceID token returns Nil at first time

I am using Firebase notification in my app. When I install my app for first time FIRInstanceID.instanceID().token() returns nil, but it won't return nil at next time. Everything is done perfect except this. Here is the code: import UIKit import…
Kavin Kumar Arumugam
  • 1,792
  • 3
  • 28
  • 47
5
votes
1 answer

Get registered tokens for a topic in FCM

I am working on an app which has a group and there are multiple users who are part of the group and each user may have more than 1 device. I am using FCM for sending out notifications to update users about the group updates. Each user is subscribed…
kirtan403
  • 7,293
  • 6
  • 54
  • 97
4
votes
0 answers

Firebase InstanceID: does it persist after app uninstall/reinstall?

In case of uninstalling the app and reinstalling after a few weeks, does the Firebase InstanceID stay the same or a new one gets generated?
4
votes
1 answer

Use Instance ID as unique ID for my Android app

I want to create a unique ID for my app. As given in the following link I want to use InstanceID as the unique id. String uniqueID = InstanceID.getInstance(context).getId(); Because of some configuration setup, my server expects unique id to be in…
MobileAppDeveloper
  • 1,048
  • 2
  • 16
  • 27
4
votes
1 answer

Does any need to change API key while using GCM 3.0 Instance ID API?

Currently I am integrating GCM 3.0 new registration process for push notification using InstanceID API. Before that i am using GCM 2.0 register() method for push notifications and for that I have created project on Google developer console and…
Rajesh Jadav
  • 12,801
  • 5
  • 53
  • 78
4
votes
0 answers

InstanceID and Regid GCM

as I read, the function gcm.register() is deprecated. and I may use InstanceID.getToken() instead... I use it as described here but every time I run the app, I get new RegID (Instance ID).. here how I registered : @Override …
EsmaeelQash
  • 488
  • 2
  • 6
  • 20
3
votes
0 answers

Implement app instance ID for Ionic/Cordova

I have been using the Cordova device plugin to access the UUID. For iOS this is unique per instance rather than per device. Alas this is not the case with Android. I wanted to use it as a means to recover a lost connection but don't want it to…
stephen
  • 385
  • 3
  • 24
3
votes
1 answer

Google Instance Id Server validation gives 401 error

I want to verify the app authenticity. To do that I want to use Google Instance Id. Using the instance id documentation i created an instance id token. I got instance id token for a dummy app(created only to get instance id Token). After getting…
3
votes
3 answers

Getting Azure VM Instance ID from within a VM and linking it with imported Azure VM instances

I am developing a client-server application where I want the client (Azure VM) to send its instance ID to the server. The server will use this instance ID to link it with the corresponding VM from the list of imported Azure instances (using Azure…
Tyler Durden
  • 1,188
  • 2
  • 19
  • 35
3
votes
0 answers

SecurityException in GcmReceiver

I have an app in which I use GCM for receiving push notification. I received some crashes with following trace: Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.google.android.gms.gcm.GcmReceiver:…
2
votes
0 answers

Has Google IID Server been deprecated?

Google provides an instance ID server (Google Server Documentation) whereby an instance ID can be passed and the server will return information about that specific instance of an application including the package name, version, platform, etc. It…
G. Steve
  • 2,739
  • 2
  • 11
  • 17
2
votes
1 answer

Firebase InstanceId not being deleted

I have an Android app with firebase notification services currently on deployment. The google-services.json file associated with it had wrong entries. I fixed the .json file and firebase services are now working as usual for newly installed apps.…
2
votes
1 answer

Is it possible to obtain an instance Id for a service?

I am using a service across multiple components, each provided to the component in its own providers array. I am curious to see which components are using which instances of the service, as I am doing some experiments that involve passing them…
rayray
  • 1,625
  • 1
  • 9
  • 15
1
2 3