This is the repository of Android to Push Notification Service (Base App), a.k.a A2PNS.
Currently, the first version of A2PNS supports Android to iOS notification deliveries, and it is still under development.
(This might be changed in the future. See Roadmap section below)
To use A2PNS app:
- Get and install A2PNS app via Google Play Store (see link above), or by downloading APK file directly from Releases
- Get one of the companion apps
- Run A2PNS app and follow the instructions
To build A2PNS app:
- Open the project in Android Studio
- In package org.xlfdll.a2pns, create a Kotlin code file named ''ExternalData.kt'' and add the following:
package org.xlfdll.a2pns
internal object ExternalData {
// true - Mock Debug Mode. Create payloads but do not send (only log them)
// false - Production Mode. Will send payloads to push notification services (e.g. Apple's PNS)
const val MockMode = true
// true - Debug Mode. Use development server as push notification service (e.g. Apple's PNS) destinations
// false - Production Mode. Use production server as push notification service destinations
const val DebugMode = true
// Different notification service servers need to use different tokens for authentication
const val AuthDataURL = <Your Auth Token Server URL: String>
}
- Build the project and test
Please refer to here for complete build instructions on iOS companion app.
Below is a rough roadmap for A2PNS project.
Please notice that all descriptions of the future versions are not a guarantee on implementations. Changes may occur.
- 1.0: Android to iOS notification delivery (A2IPNS).
- Future (presumably 2.0): Android to platform X notification delivery
- Base App will be refactored for easy support on other push notification platforms
- As a result, A2IPNS (Android side) will become a supported plugin
- New plugins will be added if needed
Currently, A2PNS follows the same licensing options as A2IPNS.
Refer to here for more information on licensing.