• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps messages bug, send a notification to myself

gg2046

Lurker
HI, everyone,

my app connect to parse.com,
when member A send a message to members B, mobile phone will get a notification, when member B press the notification, it will go to a private chat, but not chat with member A, only go to chat with member B himself, that means chat with himself. how to fix it ?thx

Intent messengerIntent = new Intent(context, MessengerActivity.class);
messengerIntent.putExtra(MessengerActivity.EXTRA_USER_TO_ID, userId);
PendingIntent messengerPendingIntent = PendingIntent.getActivity(context, 0, messengerIntent, PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentIntent(messengerPendingIntent);
 
how is member A connected to member B and have you tested the trace on two devices as member A and as member B

Device one should be member A
Device two member B

Member be should be connected to Member A
Member A should be connected to Member B

How did you connected them so each device knows?

because both devices need to know each other and connected some how either via MySQL or HTTP SSL Var one needs to know var two and var two needs to know var one
 
Back
Top Bottom