Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello again. sorry for being heavy. But not much programming. I’m just an amateur.

    Regarding what dtsolis commented, this code is the example of Parse.com
    That would have to change parameters here to receive the URL of the post and open the browser?

    The plugin works great.

    Thank you again.

    @Override
      public void onReceive(Context context, Intent intent) {
        try {
          String action = intent.getAction();
          String channel = intent.getExtras().getString("com.parse.Channel");
          JSONObject json = new JSONObject(intent.getExtras().getString("com.parse.Data"));
    
          Log.d(TAG, "got action " + action + " on channel " + channel + " with:");
          Iterator itr = json.keys();
          while (itr.hasNext()) {
            String key = (String) itr.next();
            Log.d(TAG, "..." + key + " => " + json.getString(key));
          }
        } catch (JSONException e) {
          Log.d(TAG, "JSONException: " + e.getMessage());
        }
      }
    }

    Plugin Hello, and installed. I could not send push notifications, but thanks to Salvatore can already do.

    My question is: When I post an entry, send push notifications to mobile.
    But I can do so that when users click, fence to the website where this article?

    My code is as follows:

    @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
    
            Parse.initialize(this, "xxxxxxxxxxxxxxxxxxxxxxx",
                    "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy");
            PushService.setDefaultPushCallback(this, MainActivity.class);
            ParseInstallation.getCurrentInstallation().saveInBackground();
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
            init();
    
        }

    Thanks, and sorry for the English.

Viewing 2 replies - 1 through 2 (of 2 total)