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

Commit

Permalink
Update to iOS mobile apps format (#1308)
Browse files Browse the repository at this point in the history
* Include empty Apps

* apps

* doc

* examples

* keep the same example
  • Loading branch information
whaught committed Dec 20, 2020
1 parent 8b75823 commit 82ad0f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/server/assets/mobileapps/_app.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<small class="form-text text-muted d-none" id="ioshelp">
The iOS Mobile App configuration must be blank if you are an iOS Exposure Notifications Express (ENX) customer. This should only
be filled in for custom applications.
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
</small>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/link_handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Sample iOS universal link metadata
"applinks": {
"details": [
{
"appID": "com.google.test.application",
"appID": "ABCD1234.com.google.test.application",
"paths": ["*"]
}
]
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/associated/ios.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (c *Controller) getIosData(realmID uint) (*IOSData, error) {

return &IOSData{
Applinks: Applinks{
Apps: []string{}, // expected always empty.
Details: details,
},
}, nil
Expand Down
3 changes: 3 additions & 0 deletions pkg/database/mobile_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ type MobileApp struct {
OS OSType `gorm:"column:os; type:int;"`

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

// SHA is a unique hash of the app.
Expand Down

0 comments on commit 82ad0f5

Please sign in to comment.