-
Notifications
You must be signed in to change notification settings - Fork 41
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
Added Android support and redesigned the API #32
base: master
Are you sure you want to change the base?
Conversation
For iOS development, you should know that the new event handler is the same from cordova-plugin-battery-status, since the Since using OS icons is not recommended as they can be removed or renamed, I've included five icons from Material Icons, which are Apache 2.0 licensed, but I can change back to OS icons if you don't want to include assets. And also, The code is a little messy, but it works. Just let me know if it needs any API changes for iOS. |
Sweet @Guichaguri! From my initial read through, it looks good. There will need to be an update to the Obj-C updateMetadata function to handle the object that's passed in rather than the array thats currently used. Hopefully I can put a little time towards it tomorrow. Thanks again for picking up the ball and running with it. |
I just noticed the java files were outside the src folder. Fixed it, should work as expected now |
Does this work with the app in the background for an extended period of time? What happens if the cordova activity is paused while the app is in the background? Most apps nowadays play media from a background service, and then use the service for notification interaction, thereby decoupling it from the activity. |
@LukePulverenti I can't remember how I made it, I also don't use Cordova anymore. |
Here it is the Android Support with the new API.
This implementation works with Android 4.X and greater. Most of the properties are not visible, but they are for integration with smart watches, cars, etc.
The lock screen wallpaper only changes in Android 5.X and greater.
API Functions supported by Android: