android - Unable to start receiver com.parse.ParseBroadcastReceiver: java.lang.IllegalArgumentException: Operation is invalid after previous operation -
i have parse integrated in app push notifications. getting lot of crashes on many devices related parse. haven't sent push notifications yet. , using parse sdk 1.8.1. here stack trace -
android.app.activitythread.handlereceiver activitythread.java, line 2554 2 android.app.activitythread.access$1700 activitythread.java, line 163 3 android.app.activitythread$h.handlemessage activitythread.java, line 1333 4 android.os.handler.dispatchmessage handler.java, line 102 5 android.os.looper.loop looper.java, line 157 6 android.app.activitythread.main activitythread.java, line 5335 7 java.lang.reflect.method.invokenative 8 java.lang.reflect.method.invoke method.java, line 515 9 com.android.internal.os.zygoteinit$methodandargscaller.run zygoteinit.java, line 1265 10 com.android.internal.os.zygoteinit.main zygoteinit.java, line 1081 11 dalvik.system.nativestart.main caused by: java.lang.illegalargumentexception: operation invalid after previous operation. 1 com.parse.parseremoveoperation.mergewithprevious sourcefile, line 53 2 com.parse.parseoperationset.mergefrom sourcefile, line 62 3 com.parse.parseobject.mergerest sourcefile, line 889 4 com.parse.offlinestore$13$2.then sourcefile, line 798 5 com.parse.offlinestore$13$2.then 6 a.h$5.run sourcefile, line 755 7 a.d$a.execute sourcefile, line 105 8 a.h.c sourcefile, line 746 9 a.h.a sourcefile, line 545 10 a.h.a sourcefile, line 556 11 a.h$3.a sourcefile, line 650 12 a.h$3.then sourcefile, line 638 13 a.h$6.run sourcefile, line 796 14 a.d$a.execute sourcefile, line 105 15 a.h.d sourcefile, line 787 16 a.h.b sourcefile, line 599 17 a.h.b sourcefile, line 574 18 a.h.c sourcefile, line 638 19 a.h.c sourcefile, line 662 20 com.parse.offlinestore$13.then sourcefile, line 795 21 com.parse.offlinestore$13.then sourcefile, line 754 22 a.h$6.run sourcefile, line 796 23 a.d$a.execute sourcefile, line 105 24 a.h.d sourcefile, line 787 25 a.h.b sourcefile, line 599 26 a.h.b sourcefile, line 610 27 a.h$4.a sourcefile, line 702 28 a.h$4.then sourcefile, line 690 29 a.h$6.run sourcefile, line 796 30 a.d$a.execute
i initialising parse in application subclass. , have registered in manifest class correctly.
<service android:name="com.parse.pushservice" /> <receiver android:name="com.parse.parsepushbroadcastreceiver" android:exported="false"> <intent-filter> <action android:name="com.parse.push.intent.receive" /> <action android:name="com.parse.push.intent.delete" /> <action android:name="com.parse.push.intent.open" /> </intent-filter> </receiver> <receiver android:name="com.parse.parsebroadcastreceiver"> <intent-filter> <action android:name="android.intent.action.boot_completed" /> <action android:name="android.intent.action.user_present" /> </intent-filter> </receiver> <receiver android:name="com.parse.gcmbroadcastreceiver" android:permission="com.google.android.c2dm.permission.send"> <intent-filter> <action android:name="com.google.android.c2dm.intent.receive" /> <action android:name="com.google.android.c2dm.intent.registration" /> <category android:name="my_app_package" /> </intent-filter> </receiver>
i fixed problem disabling local data storage. had method call before initialising parse -
parse.enablelocaldatastore(this); parse.initialize(this, "key", "key"); parseinstallation.getcurrentinstallation().saveinbackground();
i had remove enabledatastore() method call. not sure why causing issue.
Comments
Post a Comment