Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit c6a6c56

Browse files
authored
Update to iOS mobile apps format (#1308)
* Include empty Apps * apps * doc * examples * keep the same example
1 parent 57be708 commit c6a6c56

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Diff for: cmd/server/assets/mobileapps/_app.html

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<small class="form-text text-muted d-none" id="ioshelp">
3333
The iOS Mobile App configuration must be blank if you are an iOS Exposure Notifications Express (ENX) customer. This should only
3434
be filled in for custom applications.
35+
The iOS app id should be either a team ID or app ID prefix followed by the bundle ID. eg. ABCD1234.com.google.test.application
3536
</small>
3637
</div>
3738

Diff for: docs/link_handling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Sample iOS universal link metadata
4848
"applinks": {
4949
"details": [
5050
{
51-
"appID": "com.google.test.application",
51+
"appID": "ABCD1234.com.google.test.application",
5252
"paths": ["*"]
5353
}
5454
]

Diff for: pkg/controller/associated/ios.go

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type IOSData struct {
3333
}
3434

3535
type Applinks struct {
36+
Apps []string `json:"apps"`
3637
Details []Detail `json:"details,omitempty"`
3738
}
3839

@@ -84,6 +85,7 @@ func (c *Controller) getIosData(region string) (*IOSData, error) {
8485

8586
return &IOSData{
8687
Applinks: Applinks{
88+
Apps: []string{}, // expected always empty.
8789
Details: details,
8890
},
8991
}, nil

Diff for: pkg/database/mobile_app.go

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ type MobileApp struct {
6767
OS OSType `gorm:"column:os; type:int;"`
6868

6969
// AppID is a unique string representing the app.
70+
//
71+
// For iOS this should include the team ID or app ID prefix followed by
72+
// the bundle ID. eg. ABCD1234.com.google.test.application
7073
AppID string `gorm:"column:app_id; type:varchar(512);"`
7174

7275
// SHA is a unique hash of the app.

0 commit comments

Comments
 (0)