Question

I am creating the library file(.a file) which will store the device token on the server, but as per my knowledge(i am very much naive in native ios) AppDelegate is not available in the library files and device token can only be received in the app delegate.Is there any other method to do the same. Any suggestion or help will be highly obliged.

Was it helpful?

Solution

Its not possible.

The standard approach is you create one method to save device token and make it available for users so they can call your library method to save device token manually.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top