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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top