[GUIDE] Working with Parse | Push notifications | Users | Saving data | More

gauravbansal7

New member
Feb 4, 2013
2
0
0
30
Kharagpur
Any Idea how to acheive this from behind a proxy?

Hi!
The place i am sitting is behind a proxy, we have all the connection to the internet through a proxy server, so is there a way to use this technique from behind a proxy?
 

nikwen

Senior Member
Feb 1, 2013
3,142
1,597
0
Hi!
The place i am sitting is behind a proxy, we have all the connection to the internet through a proxy server, so is there a way to use this technique from behind a proxy?
Why not? This guide doesn't use your server. It uses the company Parse's server.

So it does not matter whether you use a proxy.
 

dodialfaed

Senior Member
Jun 27, 2011
197
29
0
Targu Mures
Hy Marteen!
Thank you for the tutorial :good:
I have on equestion though ... Do you know how to implement code so that users of an app can subscribe to watever channel they like in order to receive notifications only from that cannel?
I mean I have a dialog where users can choose channels but pressing the submit button doesn't do anything yet:rolleyes:
 

MaartenXDA

Senior Member
Oct 2, 2012
1,971
1,159
0
Amsterdam
Hy Marteen!
Thank you for the tutorial :good:
I have on equestion though ... Do you know how to implement code so that users of an app can subscribe to watever channel they like in order to receive notifications only from that cannel?
I mean I have a dialog where users can choose channels but pressing the submit button doesn't do anything yet:rolleyes:
Here's a quick one ;)

Code:
PushService.subscribe(context, "YourChannel", YourActivity.class);
And to unsubscribe again:
Code:
PushService.unsubscribe(context, "YourChannel");
 

dodialfaed

Senior Member
Jun 27, 2011
197
29
0
Targu Mures
Here's a quick one ;)

Code:
PushService.subscribe(context, "YourChannel", YourActivity.class);
And to unsubscribe again:
Code:
PushService.unsubscribe(context, "YourChannel");
Ok I got it. Thanks!
But it would be great if instead of "YourChannel" it woul get data automatically from what a user selected.
To beter explain my app a user can select from a spinner the street where he/she lives and then receive notifications only when something happens on that street.
 

dodialfaed

Senior Member
Jun 27, 2011
197
29
0
Targu Mures
Got it!

I eventually figured it out via stackoverflow :p

Here's the piece of code that I nedeed, for those of you who aree interested:
Code:
public void onClick(View v) {

                      String loc = localitate.getSelectedItem().toString();
                      String str = strada.getText().toString();
                      sendFeedback (loc,str);

private void sendFeedback(String loc, String str) {
    // TODO Auto-generated method stub
    ParseInstallation installation = ParseInstallation.getCurrentInstallation();
  installation.addAllUnique("channels", Arrays.asList(loc+str));
    installation.saveInBackground();
 

General.Imad

New member
Nov 15, 2013
3
0
0
NEED HELP!!!!

1. Please I want to know If I JUST need the first (10) Steps to be able to send Notifications...
2. And if you can post here the FULL code of the onCreate function...

Pleaaaase, I Need Your help because I'm trying to use it in my application but NO notifications are sent :(
(N.B: The SDK was installed properly, and I have checked it in the parse.com Website!). :confused::confused::confused: