Pārlūkot izejas kodu

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

Sebastián Katzer 8 gadi atpakaļ
vecāks
revīzija
c65e947333
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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;