Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
payload: {
key1: "value1",
key2: "value2"
},
category: "com.example.category",
"content-available": 0,
"action-identifier": "default"
};
device.sendUserNotification(userNotificationCalendarTrigger);
device.sendUserNotification(userNotificationLocationTrigger);
device.sendUserNotification(userNotificationTimeIntervalTrigger);
device.sendUserNotification(userNotificationPushTrigger);
// $ExpectError
device.setOrientation("normal");
device.setOrientation("portrait");
// $ExpectError
device.setLocation();
device.setLocation(32.04, 34.78);
device.setURLBlacklist(["https://flow.org", "https://flow.org"]);
device.enableSynchronization();
device.disableSynchronization();
device.resetContentAndSettings();
device.getPlatform();
// Matchers
// --------
by.id("flowType");
by.text("flowType is great!");
by.label("welcome");
badge: 1,
payload: {
key1: "value1",
key2: "value2"
},
category: "com.example.category",
"content-available": 0,
"action-identifier": "default"
};
device.sendUserNotification(userNotificationCalendarTrigger);
device.sendUserNotification(userNotificationLocationTrigger);
device.sendUserNotification(userNotificationTimeIntervalTrigger);
device.sendUserNotification(userNotificationPushTrigger);
// $ExpectError
device.setOrientation("normal");
device.setOrientation("portrait");
// $ExpectError
device.setLocation();
device.setLocation(32.04, 34.78);
device.setURLBlacklist(["https://flow.org", "https://flow.org"]);
device.enableSynchronization();
device.disableSynchronization();
device.resetContentAndSettings();
device.getPlatform();
// Matchers
// --------
by.id("flowType");
by.text("flowType is great!");