Added alarm call that will work in doze mode#32
Added alarm call that will work in doze mode#32DavidBriglio wants to merge 1 commit intownyc:masterfrom
Conversation
and Cleanup and cordova 7+ compatibility
|
This PR is necessary since all android phones (API 23+) will not respect alarms set if not called by the new Read here for more information. |
Merge in improvement from wnyc#32 by @DavidBriglio
|
Hi DavidBriglio were you able to install this plugin ? Currently I am using cordova 9.0.0 and after doing cordova plugin add https://github.com/wnyc/cordova-plugin-wakeuptimer.gitI got following error : |
|
@Pratz007-tech This is because the current plugin state is very old. Plugins now require a |
|
Thank you so much David Sure will try this out :) Appreciate your support !! |
|
Does this plugin support has ios UIWebView resolved ? As in if I install this plugin & use will it resolve the ios issue : |
|
@Pratz007-tech I do not think this will solve that issue for you. The main issue you are seeing is caused by not using the newer webview: WKWebView. Once you switch to this you should no longer see those errors: https://cordova.apache.org/howto/2020/07/18/uiwebview-warning.html |
|
Hey Thanks David I had already checked and implemented the changes but I am facing issue for the same have added my query comment on the blog you mentioned. |
|
Why am i getting this error in xcode even after installing plugin on cordova setup ERROR: Plugin 'WakeupPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. When checked in myApp --> plugins --> cordova-plugin-wakeuptimer --> plugin.xml unlike other plugin.xml file I could only see there is no <platform name="ios"'> nor <platform name="'browser"'>. Would be great if you help me out. |
|
You are seeing this because my fork had removed iOS support. Use my 'doze-handling' branch specifically if you want a version that has iOS support and has a valid package.json file: I'm not sure what the state is of that iOS support though. |
|
Thanks David. I added your plugin via the command --> cordova plugin add https://github.com/DavidBriglio/cordova-plugin-wakeuptimer#doze-handling. Also tried adding & removing ios platform my build is getting failed . Error trace as follows : |
|
While digged in detail via xcode it showed me issue saying Use of undeclared identifier : 'CDVLocalNotification' in myApp --> plugins --> org.nypr.cordova.wakeuptimer --> src -->ios --> WakeUpPlugin.m (line no . 51 & 454) |
Also cleanup and Cordova 7+ compatibility