Hi all,
After playing with the Xtify SDk for push notifications, I am able to register my device and then recieve a test message which is show in the logs..
However I am having a newb problem !
I have my main class that is called from B4A :
The code then calls a second public class that overrides the Broadcast receiver :
What I am struggling to comprehend is how I can raise an event for B4A and pass the Strings.
After playing with the Xtify SDk for push notifications, I am able to register my device and then recieve a test message which is show in the logs..
However I am having a newb problem !
I have my main class that is called from B4A :
B4X:
public class nejoC2DM{
public void connectToPush(BA ba, String eventName){
code here to connect to Xtify Servers..
}
}
The code then calls a second public class that overrides the Broadcast receiver :
B4X:
public class receiver extends BroadcastReceiver
{
public Neoreceiver(){
super();
}
static String T = "";
static String B = "";
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Log.i("MESSGAE", "Got Here");
abortBroadcast();
if (intent.hasExtra("NOTIFICATION_TITLE") && intent.hasExtra("NOTIFICATION_DETAILS")) {
T = intent.getStringExtra("NOTIFICATION_TITLE");
B = intent.getStringExtra("NOTIFICATION_DETAILS");
Log.i("MESSGAE", "******** " + T + " : : " + B + " ******");
}
}
} //end class
What I am struggling to comprehend is how I can raise an event for B4A and pass the Strings.