hi there ...
Apr 15, 2017
I have this error when I'm trying to push a notification from the server to a user [ errorCode=InvalidRegistration ]
I'm using these lines to get my device ID :
ndroidJavaClass up = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
AndroidJavaObject currentActivity = up.GetStatic<AndroidJavaObject> ("currentActivity");
AndroidJavaObject contentResolver = currentActivity.Call<AndroidJavaObject> ("getContentResolver");
AndroidJavaClass secure = new AndroidJavaClass ("android.provider.Settings$Secure");
DeviceToken = secure.CallStatic<string> ("getString", contentResolver, "android_id");
DeviceToken = SystemInfo.deviceUniqueIdentifier;
it was working when was using other backend services, but I really would like to use your backend service.
" need a clear answer please about this problem "