Closed Bug 1586736 Opened 5 years ago Closed 5 years ago

iOS: Implement DebugActivity-like functionality

Categories

(Data Platform and Tools :: Glean: SDK, task, P1)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: janerik, Assigned: travis_)

References

Details

(Whiteboard: [telemetry:glean-rs:m12])

Attachments

(1 file)

We need to decide on which way we want to make this happen:

  • command-line argument
  • URL schema
  • something else?

From the Glean-iOS implementation doc:
The GleanDebugActivity in Glean for Android gives us the capability of passing information to the application from a command line launch in order to tag pings for debug use, as well as other situations.

While there is not really a parallel for this functionality in iOS, it is not necessarily needed as we can pass command line parameters directly to the app which are accessible through the UserDefaults API (similar to the SharedPreferences of Android) or CommandLine API through a mechanism called launch arguments. See here for information on how this is accomplished.

Another possibility would be to implement a custom URL scheme or through universal links which can be used to manipulate the application from another app or website. This is typically used to link to content within the app but appears to be able to be modified to suit our purpose. This would potentially allow us to control the debug functions by entering a URL in a web browser on the device.

I strongly feel we should start with the CLI support first, and consider adding the custom URL scheme support to both iOS and Android later.

Whiteboard: [telemetry:glean-rs:m?] → [telemetry:glean-rs:m12]
Assignee: nobody → tlong
Type: defect → task
Priority: P3 → P1
Attached file GitHub Pull Request
Depends on: 1599834
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: