Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not hitting OnRegistered() XF/Android - SDK 25 #122

Open
benevbright opened this issue Apr 30, 2017 · 7 comments
Open

Not hitting OnRegistered() XF/Android - SDK 25 #122

benevbright opened this issue Apr 30, 2017 · 7 comments

Comments

@benevbright
Copy link

Android SDK : API 25
Tested device : Android 5.0 device, 6.0 device.
Tested on release build.

It was working fine before. (on API 23)
I'm not sure since when this is broken.

It hits CrossPushNotification.Initialize("XXXXX");
It hits CrossPushNotification.Current.Register();
BUT Not hitting OnRegistered.
'void IPushNotificationListener.OnRegistered(string Token, DeviceType deviceType){}'

@benevbright
Copy link
Author

I tested with SDK 24.
But same result.
Because OnRegistered is not hit, I can't get a push token.

I can't test with lower SDK than 24 because XF now require to use API 24+.

@benevbright
Copy link
Author

Out app version on the Google play currently is working fine and no problem getting push token.
But new version which we're working on currently has a problem with that.

@benevbright
Copy link
Author

benevbright commented Apr 30, 2017

I tried resetting git to back to the previous version and find from where when wrong.

XF 2.3.3.180 / SDK API 23 - OK. working fine
XF 2.3.4.231 / SDK API 24 - OK. working fine
and next - need to update other nugets, maybe there is the reason...

@benevbright
Copy link
Author

I resolved my problem thanksfully.

I removed Xamarin.Googleplay.Measurement, which is out of date. (It's stopped from version 2x)
and update Xamarin.Googleplayservices.basement to 42.1001

got it working.

@hussamalzahabi
Copy link

unfortunately it dosen't work for me :(

@benevbright
Copy link
Author

Did you try with 1.2.5-beta of this nuget?
and
If version of your Xamarin.Googleplayservices.XXX is not 42.1001, remove every Googleplayservices nuget and install only 42.1001 again.

@hussamalzahabi
Copy link

i make a post before some minute you can see it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants