Gaia/Network Alerts: Difference between revisions

(Created page with "== Development Team == You'll be able to find the current team on the Firefox OS modules page. The Network Alerts team is part of the lar...")
 
Line 22: Line 22:


The bold "1112" is the message identifier and this ID represents different channel. Please reference |9.4.1.2.2 Message Identifier| in [http://www.etsi.org/deliver/etsi_ts/123000_123099/123041/11.06.00_60/ts_123041v110600p.pdf spec].
The bold "1112" is the message identifier and this ID represents different channel. Please reference |9.4.1.2.2 Message Identifier| in [http://www.etsi.org/deliver/etsi_ts/123000_123099/123041/11.06.00_60/ts_123041v110600p.pdf spec].
== Debugging with WebIDE ==
First you need to open WebIDE and connect to your FxOS Device (USB or via WiFi) and then perform the following steps:
* Select "Main Process" in the process list;
* Open DevTools->Scratchpad (it should be enabled in DevTools settings);
* Paste script below to the Scratchpad;
* Modify ''cellBroadcastMessage'' with required parameters and press Run.
let cellBroadcastMessage = {
  messageId: 4370,
  serviceId: 0,
  gsmGeographicalScope: null,
  messageCode: 0,
  language: null,
  body: 'Tsunami!',
  messageClass: 6,
  timestamp: Date.now(),
  cdmaServiceCategory: null,
  etws: null
};
var messageManager = Cc["@mozilla.org/system-message-internal;1"].getService(Ci.nsISystemMessagesInternal);
messageManager.broadcastMessage('cellbroadcast-received', cellBroadcastMessage, {});


== The alert message structure ==
== The alert message structure ==
Confirmed users
383

edits