Skip to content

Commit 820fbc9

Browse files
committed
Docs-only release
1 parent e3bde41 commit 820fbc9

File tree

3 files changed

+82
-23
lines changed

3 files changed

+82
-23
lines changed

README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,39 @@
22

33
![FlyBuy SDK for Android](readme.png)
44

5-
The FlyBuy cloud service and mobile SDK from [Radius Networks][1] enables
6-
developers to add FlyBuy functionatlity directly into their app for a full
7-
white label implmentation of the service.
5+
The FlyBuy cloud service and mobile SDK from [Radius
6+
Networks][1] enables developers to add FlyBuy functionality directly into their app for a full white label implementation of the service.
87

9-
## Install
8+
## Getting Started
109

1110
See the [quick start guide](doc/quickstart.md) for details.
1211

12+
More information can be found about:
13+
14+
- [Customers](doc/customer.md)
15+
- [Orders](doc/orders.md)
16+
- [Notifications](doc/notifications.md)
17+
- [App Links](doc/app_links.md)
18+
19+
1320
## Issues
1421

1522
For general service questions and help consult the Radius Networks [support knowledge base][2].
1623

17-
If you've found a problem in this library, perform a search under [Issues][3]
18-
in case it has already been reported. If you do not find any issue addressing
19-
it, feel free to [open a new one][3]
24+
If you've found a problem in this library, perform a search under [Issues][3] in case it has already been reported. If you do not find any issue addressing it, feel free to [open a new one][3].
2025

2126
Your issue report should contain a title and a clear description of the issue
2227
at a minimum. Please provide as much relevant information as possible to
23-
replicate the issue. This should include the Xcode and library versions, a code
28+
replicate the issue. This should include the Android and library versions, a code
2429
sample demonstrating the issue, and device OS information.
2530

2631
## License
2732

28-
Copyright (c) 2019 by Radius Networks
29-
30-
http://www.radiusnetworks.com
31-
32-
All Rights Reserved
33-
34-
Usage of this library implies agreement to abide by the [license
35-
terms](LICENSE) and Radius Networks [terms of service][4]
33+
Copyright (c) 2019 by Radius Networks. https://www.radiusnetworks.com. All Rights Reserved. Usage of this library implies agreement to abide by the [license
34+
terms](https://github.com/RadiusNetworks/flybuy-android/blob/master/LICENSE) and Radius Networks [terms of service][4].
3635

37-
[1]: http://www.radiusnetworks.com/
36+
[1]: https://www.radiusnetworks.com/
3837
[2]: https://radiusnetworks.zendesk.com/
3938
[3]: https://github.com/RadiusNetworks/flybuy-android/issues/new
40-
[4]: http://www.radiusnetworks.com/terms_of_service.html
39+
[4]: https://www.radiusnetworks.com/terms-of-service
4140

doc/app_links.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# App Links
2+
3+
These instructions will help you set up app links to your Android app from a white-label FlyBuy domain. If you don't already have a white-label domain set up with FlyBuy go [here](https://github.com/RadiusNetworks/flybuy-documentation/blob/master/doc/white_label_domains.md) to get that set up first.
4+
5+
## Setting up app links in your app from a white-label FlyBuy domain
6+
7+
To get started we need a few things to set up your white-label FlyBuy domain to support directing users to your app via Android app links:
8+
9+
- The name of the existing white-label FlyBuy domain to set up for your app (e.g., `pickup.example.com`)
10+
- The link to the app in Google Play
11+
- The SHA-256 hash of the app certificate (used by Android to verify the app link from the white-label domain)
12+
13+
For more information on generating the SHA-256 hash fingerprint for your app check out [this page](https://developer.android.com/training/app-links/verify-site-associations#web-assoc) of the Android developer docs.
14+
15+
Please provide this info to your account rep to get started, next you'll just need to set up your app to receive app links from the white-label FlyBuy domain.
16+
17+
### Add an intent-filter to your app manifest
18+
19+
To enable verified app links to your app you need to add a web URL intent filter to your app manifest that includes `android:autoVerify="true"` and is associated with the white-label domain you have configured, for example:
20+
21+
```xml
22+
<activity ...>
23+
24+
<intent-filter android:autoVerify="true">
25+
<action android:name="android.intent.action.VIEW" />
26+
<category android:name="android.intent.category.DEFAULT" />
27+
<category android:name="android.intent.category.BROWSABLE" />
28+
<data android:scheme="http" android:host="pickup.example.com" />
29+
<data android:scheme="https" />
30+
</intent-filter>
31+
32+
</activity>
33+
```
34+
35+
This tells Android to verify that the domain you have set up is associated with your app and will allow links for this domain to be opened directly in your app without user interaction.
36+
37+
### Respond to the incoming intent from the app link
38+
39+
Once the app link domain is verified and your intent filter is set up in your manifest, you just need to handle the incoming intent in the same way that you would for an ordinary deep link. You can use the `getData()` and `getAction()` methods on the incoming `Intent` to retrieve the data about the app link. These methods are available during the full lifecycle of the activity, but it's best to put them in the early callbacks like `onCreate()` or `onStart()`. Here are some quick examples of this for Kotlin:
40+
41+
```kotlin
42+
override fun onCreate(savedInstanceState: Bundle?) {
43+
super.onCreate(savedInstanceState)
44+
setContentView(R.layout.main)
45+
46+
val action: String? = intent?.action
47+
val data: Uri? = intent?.data
48+
}
49+
```
50+
51+
You can also check out [this page](https://developer.android.com/training/app-links/deep-linking.html#handling-intents) in the Android docs for more details on handling the incoming intent from the app link.
52+
53+
The important part of the incoming URL is the order redemption code, stored in the `r` query parameter of the URL (e.g., `https://pickup.example.com/m/o?r=CODE`). You can pull the redemption code from the URL and call the `findOrder(redemptionCode)` orders operation function to retrieve the order from the FlyBuy SDK and take appropriate action for the app link.

doc/index.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
The FlyBuy cloud service and mobile SDK from [Radius
44
Networks][1] enables developers to add FlyBuy functionality directly into their app for a full white label implementation of the service.
55

6-
## Install
6+
## Getting Started
77

88
See the [quick start guide](quickstart.md) for details.
99

10+
More information can be found about:
11+
12+
- [Customers](customer.md)
13+
- [Orders](orders.md)
14+
- [Notifications](notifications.md)
15+
- [App Links](app_links.md)
16+
1017
## Issues
1118

1219
For general service questions and help consult the Radius Networks [support knowledge base][2].
@@ -20,10 +27,10 @@ sample demonstrating the issue, and device OS information.
2027

2128
## License
2229

23-
Copyright (c) 2019 by Radius Networks. http://www.radiusnetworks.com. All Rights Reserved. Usage of this library implies agreement to abide by the [license
24-
terms](https://github.com/RadiusNetworks/flybuy-ios/blob/master/LICENSE) and Radius Networks [terms of service][4].
30+
Copyright (c) 2019 by Radius Networks. https://www.radiusnetworks.com. All Rights Reserved. Usage of this library implies agreement to abide by the [license
31+
terms](https://github.com/RadiusNetworks/flybuy-android/blob/master/LICENSE) and Radius Networks [terms of service][4].
2532

26-
[1]: http://www.radiusnetworks.com/
33+
[1]: https://www.radiusnetworks.com/
2734
[2]: https://radiusnetworks.zendesk.com/
2835
[3]: https://github.com/RadiusNetworks/flybuy-android/issues/new
29-
[4]: http://www.radiusnetworks.com/terms_of_service.html
36+
[4]: https://www.radiusnetworks.com/terms-of-service

0 commit comments

Comments
 (0)