4

I can't receive push notifications, using parse.com service.
I used a quick guide trying to solve my problem. I was trying to use channel this specified name and "" as a channel name. Also i found Cannot receive push notifications in Android with trigger.io and parse.com
I succeed to send object to parse.com, and to subscribe for notifications (at least I can see my app in DataBrowser on parse.com)

public class ParseStarterProjectActivity extends Activity {
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 PushService.subscribe(this, "push", TestParse.class);
 PushService.setDefaultPushCallback(this, TestParse.class);
 }
}
 public class ParseApplication extends Application {
 @Override
 public void onCreate() {
 super.onCreate();
 Parse.initialize(this, my_id, my_client_key);
 } 
}
public class TestParse extends Activity {
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.parse);
 }
}

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 package="com.parse.starter"
 android:versionCode="1"
 android:versionName="1.0" >
 <uses-sdk
 android:minSdkVersion="4"
 android:targetSdkVersion="17" />
 <uses-permission android:name="android.permission.INTERNET" />
 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
 <uses-permission android:name="android.permission.VIBRATE" />
 <application
 android:name="ParseApplication"
 android:allowBackup="true"
 android:icon="@drawable/ic_launcher"
 android:label="@string/app_name" >
 <service android:name="com.parse.PushService" />
 <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>
 <activity
 android:name=".ParseStarterProjectActivity"
 android:label="@string/app_name" >
 <intent-filter>
 <action android:name="android.intent.action.MAIN" />
 <category android:name="android.intent.category.LAUNCHER" />
 </intent-filter>
 </activity>
 <activity
 android:name=".TestParse"
 android:label="@string/app_name" />
 </application>
</manifest>

Recently I've noticed LogCat errors:

02-21 18:17:45.381: ERROR/Trace(8952): error opening trace file: No such file or directory (2)
02-21 18:17:48.534: ERROR/com.parse.PushService(8888): unknown host


I really want to receive notifications. What am I doing wrong?

asked Feb 21, 2013 at 14:32
12
  • can you post your manifest even though you are sure you put all required stuff there ? you may have missed something Commented Feb 21, 2013 at 15:10
  • what have you analyzed so far ? your application is created / started ? your activity as well ? Commented Feb 21, 2013 at 15:41
  • My Application created, started. It shows Hello World, and also it registered at Parse.com. I can see it in DataBrowser Tab. There I can see that it listens to "push channel". So I'm trying to send notification through "Push Notifications" tab from parse.com. Nothing happens on device Commented Feb 21, 2013 at 15:50
  • HTC One S and 4.0.3 emulator Commented Feb 21, 2013 at 15:58
  • any log on one side or the other ? Commented Feb 21, 2013 at 15:59

1 Answer 1

1

Parse employee here. In order to handle increased load on our push service, we increased the number of machines serving push.parse.com. Some ISPs started having issues when DNS resolution returned this many servers. Last Friday afternoon, we launched a custom DNS server which works around these issues with 3rd party DNS resolution. This should no longer be an issue.

answered Feb 25, 2013 at 8:29
Sign up to request clarification or add additional context in comments.

6 Comments

@Thomas Bouldin i m sending push using parse from androi device using JSON Object with alert as well and title as well but i m not recieving any notification in android device
I suspect push isn't configured correctly. I'd try turning on verbose logging and checking LogCat. Try Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE)
@ThomasBouldin where should i use this code ? i m using inide success call back or failure call back of parsePush.sendInBackground(new SendCallback() {
|

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.