-
Notifications
You must be signed in to change notification settings - Fork 161
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
OnRegistered triggered only one time (after first execution of the App) #29
Comments
Yes is only trigger one time now because stores the token, if you need it to trigger more than once. should unregister. Why would you want to trigger everytime? |
I was expecting to get a new token if that was required. I have this situation:
In the mean time, can I call the Unregister() followed by the Register()? do you see a problem on this as follows: |
same issue for me. after updating the app in Xamarin Studio, GCM/PushSharp says the device token is expired. I have to either:
any ideas? EDIT: http://stackoverflow.com/questions/11590482/do-gcm-registration-ids-expire When an application is updated, it should invalidate its existing registration ID, as it is not guaranteed to work with the new version. Because there is no lifecycle method called when the application is updated, the best way to achieve this validation is by storing the current application version when a registration ID is stored. |
Now calls OnRegistered each time gets registered by Register method |
The OnRegistered method is triggered one time and only after deleting the App and installing it again, if I have the App already installed (and being using it) the OnRegistered is not triggered anymore.
Is any way to force it? or tell me if I'm doing something wrong. I have the "Register()" call in the OnStart of the App (Form App).
protected override void OnStart () {
// Handle when your app starts
CrossPushNotification.Current.Register();
}
The text was updated successfully, but these errors were encountered: