PushNotificationPlugin icon indicating copy to clipboard operation
PushNotificationPlugin copied to clipboard

OnTokenRefresh Wont Fire in Android if Linker is "Link All"

Open muhaym opened this issue 7 years ago • 3 comments

Hi,

It is to help in case any one wondering why ain't their OnTokenRefresh event fired in Android Project.

If you have Link All set, you have to add "Plugin.PushNotification" in Ignore Assemblies Section under Android Build Settings, Linker Settings.

It took hours to find this issue, cause there was no crash, or stuff.

@rdelrosario You may use Preserve Attribute to fix this issue in future releases.

muhaym avatar Apr 04 '18 22:04 muhaym

Thanks for the finding. how did you solved where did you add the Preserve attribute. You are welcome to do a PR if you want.

rdelrosario avatar Apr 04 '18 23:04 rdelrosario

I didn't do the Preserve Attribute, I just gave Link All, and added this assembly to Ignore Assembly section, when I am free, I will play around with libraries and see if I can fix the issue with Preserve Attribute. It was a suggestion.

muhaym avatar Apr 05 '18 11:04 muhaym

Still bug? Where exactly I put Preserve ?

DiegoVenancioVieira avatar May 01 '21 05:05 DiegoVenancioVieira