title: How to Push a Url in Android app using Parse.com Push notification Service?
body: <p>I am able to push simple push notification, but unable to push a url to open it in browser.</p>
  
  <p>I have seen few tutorials online were they suggest to create custom JSON receiver class. Can anyone tell me how to do it? </p>
  
  <p>MainActivity.java</p>
  
  <pre><code> package com.example.pushnotificationdemo;
  
  
  
  import com.example.pushnotificationdemo.R;
  import com.parse.ParseAnalytics;
  import com.parse.ParseInstallation;
  import com.parse.PushService;
  
  import android.content.Intent;
  import android.net.Uri;
  import android.os.Bundle;
  import android.support.v7.app.ActionBarActivity;
  import android.view.Window;
  import android.webkit.WebChromeClient;
  import android.webkit.WebView;
  import android.webkit.WebViewClient;
  
  public class MainActivity extends ActionBarActivity {
  
      WebView webframe;
  
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
  
  
          setContentView(R.layout.activity_main);
  
          ParseAnalytics.trackAppOpenedInBackground(getIntent());
  
          PushService.setDefaultPushCallback(this, MainActivity.class);
          ParseInstallation.getCurrentInstallation().saveInBackground();
  
  
  
          /** Cerco l'elemento in /res/layout/main.xml */
          webframe = (WebView) findViewById(R.id.webview);
  
          /** Javascript abilitato (ma non flash) */
          webframe.getSettings().setJavaScriptEnabled(true);
  
  
  
          /** Simulo il webbrowser chrome di android*/
          webframe.setWebChromeClient(new WebChromeClient()); 
          webframe.setWebViewClient(new WebViewClient()); 
  
          /** Assegno l'url di apertura del webframe */
          webframe.loadUrl("http://www.daiugs.com");
  
  
  
  
  
  
      }
  }
  </code></pre>
  
  <p>ParseApp.java</p>
  
  <pre><code>package com.example.pushnotificationdemo;
  
  import com.parse.Parse;
  import com.parse.ParseACL;
  import com.parse.ParseUser;
  
  import android.app.Application;
  
  public class ParseApp extends Application{
  
      @Override
      public void onCreate() {
          super.onCreate();
  
          Parse.initialize(this, "Ym4IsX0r5dGLxa8RDtj....",
                  "s9DpBvn8HI0Uu......");
  
          ParseUser.enableAutomaticUser();
          ParseACL defaultACL = new ParseACL();
  
          defaultACL.setPublicReadAccess(true);
  
          ParseACL.setDefaultACL(defaultACL, true);
      }
  
  }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.pushnotificationdemo"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/&gt;
  
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="21" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme"
          android:name=".ParseApp" &gt;
  
         &lt;activity android:name="com.example.pushnotificationdemo.SplashActivity"
                    android:label="@string/app_name"
                   android:screenOrientation="portrait"&gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
  
  
  
  
          &lt;/activity&gt;
  
         &lt;activity android:name="com.example.pushnotificationdemo.MainActivity"
                    android:label="@string/app_name"
  
                    &gt;
  
  
  
  
              &lt;/activity&gt;
  
          &lt;service android:name="com.parse.PushService"&gt;&lt;/service&gt;
  
                  &lt;receiver android:name="com.example.pushnotificationdemo.MyCustomReceiver" android:exported="false"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;action android:name="android.intent.action.USER_PRESENT" /&gt;
              &lt;action android:name="your.package.name.UPDATE_STATUS" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
  
  
          &lt;receiver android:name="com.parse.ParseBroadcastReceiver"&gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED"/&gt;
                  &lt;action android:name="android.intent.action.USER_PRESENT"/&gt;
              &lt;/intent-filter&gt;
  
          &lt;/receiver&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>