Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.backgroundMode.enable();
- bringToForeground() {
- this.sleep(5000).then(() => {
- this.backgroundMode.moveToForeground();
- this.localNotifications.schedule({
- id: 2,
- text: '2 -> Single ILocalNotification',
- sound: 'file://sound.mp3',
- data: { secret: "" }
- });
- })
- }
- sleep(time) {
- return new Promise((resolve) => setTimeout(resolve, time));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement