Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <service android:name="com.parse.PushService" />
  2. <receiver android:name="com.parse.ParseBroadcastReceiver">
  3. <intent-filter>
  4. <action android:name="android.intent.action.BOOT_COMPLETED" />
  5. <action android:name="android.intent.action.USER_PRESENT" />
  6. </intent-filter>
  7. </receiver>
  8.  
  9. android:name="com.parse.ParsePushBroadcastReceiver"
  10. android:exported="false">
  11. <intent-filter>
  12. <action android:name="com.parse.push.intent.RECEIVE" />
  13. <action android:name="com.parse.push.intent.DELETE" />
  14. <action android:name="com.parse.push.intent.OPEN" />
  15. <action android:name="1" />
  16. </intent-filter>
  17. </receiver>
  18. <receiver
  19. android:name="com.parse.GcmBroadcastReceiver"
  20. android:permission="com.google.android.c2dm.permission.SEND">
  21. <intent-filter>
  22. <action android:name="com.google.android.c2dm.intent.RECEIVE" />
  23. <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
  24. <category android:name="com.MidCenturyMedia.Shopper.light" />
  25. </intent-filter>
  26. </receiver>
  27.  
  28. dependencies {
  29. compile('com.github.parse-community.Parse-SDK-Android:parse:1.18.5') {
  30. exclude group: 'com.android.support', module: 'support-v4'}
  31. }
  32.  
  33. public class NowstApp extends Application {
  34. @Override
  35. public void onCreate() {
  36.  
  37. Parse.enableLocalDatastore(this);
  38.  
  39. Parse.initialize(new Parse.Configuration.Builder(this)
  40. .applicationId(Defines.parseApplicationID)
  41. .clientKey(Defines.parseClientKey)
  42. .server(Defines.parseURL)
  43. .build()
  44. );
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement