0

I was searching this for the last 2 days but I cannot find any answer. All what I want is to send GCM push notification to a particular phone using its phone number instead of register id(of course the device that has this phone number installed my app. ). Is this possible? If so how?

user2638062
  • 73
  • 2
  • 8

1 Answers1

1

GCM does not use or register phone numbers. You could possibly assign a UserID of some kind on install, perform a PUSH that results in data sent to your server with all those ID's so that you can connect to a phone number - but there's no reliable way to guarantee that you have the correct device phone number unless the user enters it.

Programmatically obtain the phone number of the Android phone

GCM does not use the phone number (and probably Google does not want it). That's typically called "SMS" or "MMS"

Community
  • 1
  • 1
Jim
  • 10,172
  • 1
  • 27
  • 36
  • Is'nt there a better workaround other than make users assign and send the phone back to the server? – user2638062 Feb 04 '14 at 21:04
  • Workaround? It isn't clear why you care about the phone number. You only need that for phone services (calls, SMS, MMS). Unless you want to do those things - in which case have the device send your gateway an SMS with an ID as its content... – Jim Feb 04 '14 at 21:47