回答編集履歴

2

同期処理のコード修正

2017/11/13 08:54

投稿

think49
think49

スコア18162

test CHANGED
@@ -28,15 +28,15 @@
28
28
 
29
29
  process1: function process1 () {
30
30
 
31
- this.a = 1
31
+ this.a = 1;
32
32
 
33
33
  console.log('①');
34
34
 
35
35
  },
36
36
 
37
- process2 function process2 () {
37
+ process2: function process2 () {
38
38
 
39
- console.log('②', a);
39
+ console.log('②', this.a);
40
40
 
41
41
  }
42
42
 

1

NotificationOpen イベント

2017/11/13 08:54

投稿

think49
think49

スコア18162

test CHANGED
@@ -116,7 +116,7 @@
116
116
 
117
117
 
118
118
 
119
- ### onNotificationOpen イベント
119
+ ### NotificationOpen イベント
120
120
 
121
121
 
122
122
 
@@ -138,7 +138,7 @@
138
138
 
139
139
 
140
140
 
141
- onNotificationOpen イベントはバックグラウンド実行されたアプリから復帰した時にも発火するイベントです。
141
+ NotificationOpen イベントはバックグラウンド実行されたアプリから復帰した時にも発火するイベントです。
142
142
 
143
143
  従って、先のコードで処理を行うと既に初期化処理が終わっているアプリに対して、バックグラウンドから復帰時にもう一度初期化処理が走る事になります。
144
144