Skip to content

Commit 3eb0f5d

Browse files
committed
fixed missing import java.util.Random
1 parent 4f0d58d commit 3eb0f5d

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-push-plugin",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Parse.Push plugin for phonegap/cordova/ionic",
55
"cordova": {
66
"id": "parse-push-plugin",

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<plugin xmlns="http://www.apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="parse-push-plugin" version="1.0.5">
3+
<plugin xmlns="http://www.apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="parse-push-plugin" version="1.0.6">
44
<name>ParsePushPlugin</name>
55
<description>Parse.Push plugin for phonegap/cordova/ionic framework</description>
66
<keywords>cordova,phonegap,ionic framework, parse server, parse push, push notification</keywords>

src/android/ParsePushPluginReceiver.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import android.content.pm.ResolveInfo;
2626

2727
import java.util.List;
28+
import java.util.Random;
2829

2930

3031
public class ParsePushPluginReceiver extends ParsePushBroadcastReceiver
@@ -47,7 +48,7 @@ protected void onPushReceive(Context context, Intent intent) {
4748
// only create entry for notification tray if plugin/application is
4849
// not running in foreground.
4950
//
50-
// So first we check if the user has set the configuration to have multiple
51+
// So first we check if the user has set the configuration to have multiple
5152
// notifications show in the tray (i.e. set <preference name="ParseMultiNotifications" value="true" />)
5253
ParsePushConfigReader config = new ParsePushConfigReader(context, null, new String[] {"ParseMultiNotifications"});
5354
String parseMulti = config.get("ParseMultiNotifications");
@@ -69,7 +70,7 @@ protected void onPushReceive(Context context, Intent intent) {
6970
//
7071
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
7172
setResultCode(Activity.RESULT_OK);
72-
}
73+
}
7374
}
7475
}
7576

@@ -157,15 +158,15 @@ protected Notification getNotification(Context context, Intent intent){
157158
} catch (JSONException e) {
158159
Log.e(LOGTAG, "JSONException while parsing Increment:", e);
159160
}
160-
161+
161162
try {
162163
if (pnData.getInt("badge") >= 0) {
163164
badgeCount = pnData.getInt("badge");
164165
}
165166
} catch (JSONException e) {
166167
Log.e(LOGTAG, "JSONException while parsing badge:", e);
167168
}
168-
169+
169170
setBadge(context, badgeCount);
170171
}
171172

@@ -284,7 +285,7 @@ public static String getLauncherClassName(Context context) {
284285
return className;
285286
}
286287
}
287-
288+
288289
return null;
289290
}
290291
}

0 commit comments

Comments
 (0)