Kaynağa Gözat

Forgot to add platform specific options for location based notifications

Sebastián Katzer 8 yıl önce
ebeveyn
işleme
3c3147a7ad
1 değiştirilmiş dosya ile 5 ekleme ve 3 silme
  1. 5 3
      www/local-notification-util.js

+ 5 - 3
www/local-notification-util.js

@@ -54,9 +54,11 @@ exports.applyPlatformSpecificOptions = function () {
         defaults.color       = undefined;
         break;
     case 'iOS':
-        defaults.attachments = undefined;
-        defaults.region      = undefined;
-        defaults.radius      = undefined;
+        defaults.attachments   = undefined;
+        defaults.region        = undefined;
+        defaults.radius        = undefined;
+        defaults.notifyOnEntry = true;
+        defaults.notifyOnExit  = false;
         break;
     }
 };