testing SMS opt-in

12 views
Skip to first unread message

Brad

unread,
Dec 13, 2010, 8:38:26 PM12/13/10
to Location Labs Developer Community
Hello,

I see that for unpublished apps, the SMS opt-in only works for
registered developer test phones. That means the phones would already
have Location Labs accounts, so test that part of the SMS-triggered
account initialization cannot be tested. It isn't a showstopper, but I
wanted to call that Catch-22 to your attention... unless I am missing
something.

Thanks,
Brad

Eli Bishop

unread,
Dec 13, 2010, 8:44:36 PM12/13/10
to veriplace-deve...@googlegroups.com
Brad,

That's not quite it. An unpublished app can send an SMS invitation to a
number if *either* of the following is true:

(a) An account exists for that phone, and the account has the "developer
mode" setting turned on.
(b) There is no account for that phone, but that number is listed on the
developer's "test phones" whitelist.

In the case of (b), if you send an invitation and the user replies Y,
the system will then send another SMS asking whether the user is OK with
being located by unpublished apps; if so, this turns on "developer mode"
for the new account. That question would not appear for a published
app.

I hope that clears things up...

best,
Eli

--
Eli Bishop
Wavemarket, Inc. / Location Labs
e...@location-labs.com

Brad

unread,
Dec 13, 2010, 9:57:44 PM12/13/10
to Location Labs Developer Community
Hi Eli,

Thanks for clearing that up. However, even with the user's phone on
the whitelist, we get the same exception:

[12-13 16:30:52] [INFO] sending an invite to the user
[12-13 16:30:53] [INFO] trying to invite phone=951[redacted]
[12-13 16:30:54] [ERROR] can't invite user:
com.veriplace.client.InvitationNotPermittedException
at
com.veriplace.client.InvitationAPI.doInviteOperation(InvitationAPI.java:
225)
at
com.veriplace.client.InvitationAPI.inviteGetLocation(InvitationAPI.java:
130)
at
com.knowtate.servlets.VeriplaceInviteMobileUser.inviteBySMS(VeriplaceInviteMobileUser.java:
21)


The user is on a Sprint smartphone and is on our Test Phone whitelist
(without an account). How can we further debug why this exception is
being thrown?

Thanks,
Brad

Eli Bishop

unread,
Dec 14, 2010, 2:31:41 PM12/14/10
to veriplace-deve...@googlegroups.com
Brad,

I have limited ability to troubleshoot this further without knowing
either the name of your application or the full mobile number; please
email one of these directly to me at e...@location-labs.com.

In general, there are two reasons you could get this error:
1. application is unpublished and number is not available to unpublished
apps (i.e. doesn't have an account and is not whitelisted, or does have
an account but has disabled "developer mode")
2. user has specifically disabled SMS invitations by texting STOP (or
disabling SMS on their Veriplace user account settings)

best,
Eli

On Mon, 2010-12-13 at 18:57 -0800, Brad wrote:
> Hi Eli,
>
> Thanks for clearing that up. However, even with the user's phone on
> the whitelist, we get the same exception:
>
> [12-13 16:30:52] [INFO] sending an invite to the user
> [12-13 16:30:53] [INFO] trying to invite phone=951[redacted]
> [12-13 16:30:54] [ERROR] can't invite user:
> com.veriplace.client.InvitationNotPermittedException
> at
> com.veriplace.client.InvitationAPI.doInviteOperation(InvitationAPI.java:
> 225)
> at
> com.veriplace.client.InvitationAPI.inviteGetLocation(InvitationAPI.java:
> 130)
> at
> com.knowtate.servlets.VeriplaceInviteMobileUser.inviteBySMS(VeriplaceInviteMobileUser.java:
> 21)
>
>
> The user is on a Sprint smartphone and is on our Test Phone whitelist
> (without an account). How can we further debug why this exception is
> being thrown?
>
> Thanks,
> Brad

--

Reply all
Reply to author
Forward
0 new messages