User Services/Try FMD: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 1: Line 1:
== Get Find My Device Working ==
== Get Find My Device Working ==


=== FxOS 2.0 Aurora ===
=== FxOS 2.0 Aurora and 2.1 Master ===
2.0 is set to work with stage servers till 7/9/2014
Requirement: build flashed after 15:36 PST - 7/10/2014
 
1. set fxa to use stage servers
download this: https://gist.github.com/edmoz/5596162
 
$ chmod +x modPref.sh
$ ./modPref.sh pull
 
edit prefs.js and add this to the bottom on it’s own line:
 
user_pref("identity.fxaccounts.auth.uri", "https://api-accounts.stage.mozaws.net/v1");
 
2. Run this
 
$ ./modPref.sh push prefs.js
 
 
3. on Flame, sign into Fxa, verify email if needed,  the verify link should be to
 
https://accounts.stage.mozaws.net/v1/verify_email?…
 
Note: even if you have an existing account before, you may not have created one in the Stage Database.  Just create it again.
 
4. sign into:
 
https://fmd.stage.mozaws.net
 
if you look in console i see and it correctly finds my location:
"device:updated" "2731a65040a15a6080c6b48d4231b4d9" Object { hasPasscode: undefined, latitude: 37.xx, longitude: -122.xx, altitude: 0, located: true, time: Date 2014-06-20T21:48:46.000Z } "{"Latitude":37.xx,"Longitude":-122.23120187,"Altitude":0,"Time":1403300926000,"Cmd":{"t":{"la":37.xx,"lo":-122.xx,"ok":true,"ti":1.403300926e+12}}}" device.js:50
 
ring, lost mode, erase all work as expected.
 
=== FxOS 2.1 Master ===
As of 7/9/2014
# On FxOS, goto Settings > Find My Device
# On FxOS, goto Settings > Find My Device
# sign in and enable FMD
# sign in with existing Firefox Account or create a new one, then enable FMD
# goto https://find.firefox.com
# goto https://find.firefox.com
# sign in with the same user
# sign in with the same user as step #2
# It should find you.
# It should locate your device


== End 2 End Test ==
== End 2 End Test ==
Line 115: Line 82:
Note: i haven’t been able to figure out if this can be done at runtime editable file vs build then flash.  I wasn’t able to find any files with the fmd endpoint URI  
Note: i haven’t been able to figure out if this can be done at runtime editable file vs build then flash.  I wasn’t able to find any files with the fmd endpoint URI  


==== Set FMD and Gaia URLS ====
  $ git clone https://github.com/mozilla-b2g/gaia.git
  $ git clone https://github.com/mozilla-b2g/gaia.git
  $ cd gaia
  $ cd gaia
Line 120: Line 88:
https://github.com/6a68/gaia/commit/00ec611f5d1dfc3f86bf1c139e460aae178f3d08
https://github.com/6a68/gaia/commit/00ec611f5d1dfc3f86bf1c139e460aae178f3d08
  $ make reset-gaia
  $ make reset-gaia


If you want to confirm the URLs are written correctly to your phone.  
If you want to confirm the URLs are written correctly to your phone.  
Line 128: Line 95:
on desktop unzip and view
on desktop unzip and view
  js/config.js
  js/config.js
==== Set Firefox Account URL ====
1. set fxa to use stage servers
download this: https://gist.github.com/edmoz/5596162
$ chmod +x modPref.sh
$ ./modPref.sh pull
edit prefs.js and add this to the bottom on it’s own line:
user_pref("identity.fxaccounts.auth.uri", "https://api-accounts.stage.mozaws.net/v1");
2. Run this
$ ./modPref.sh push prefs.js
3. on Flame, sign into Fxa, verify email if needed,  the verify link should be to
https://accounts.stage.mozaws.net/v1/verify_email?…
Note: even if you have an existing account before, you may not have created one in the Stage Database.  Just create it again.
4. sign into:
https://fmd.stage.mozaws.net
if you look in console i see and it correctly finds my location:
"device:updated" "2731a65040a15a6080c6b48d4231b4d9" Object { hasPasscode: undefined, latitude: 37.xx, longitude: -122.xx, altitude: 0, located: true, time: Date 2014-06-20T21:48:46.000Z } "{"Latitude":37.xx,"Longitude":-122.23120187,"Altitude":0,"Time":1403300926000,"Cmd":{"t":{"la":37.xx,"lo":-122.xx,"ok":true,"ti":1.403300926e+12}}}" device.js:50
ring, lost mode, erase all work as expected.


== Test Servers ==
== Test Servers ==
Confirmed users
964

edits

Navigation menu