Bläddra i källkod

Add warning that trigger: { count: } is not supported on iOS

Sebastián Katzer 8 år sedan
förälder
incheckning
c65e947333
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      www/local-notification-util.js

+ 4 - 0
www/local-notification-util.js

@@ -248,6 +248,10 @@ exports.convertTrigger = function (options) {
         trigger.count = trigger.every ? 5 : 1;
     }
 
+    if (trigger.count && device.platform == 'iOS') {
+        console.warn('trigger: { count: } is not supported on iOS.');
+    }
+
     if (!isCal) {
         trigger.notifyOnEntry = !!trigger.notifyOnEntry;
         trigger.notifyOnExit  = trigger.notifyOnExit === true;