You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update mobile documentation with enhanced deep links, push notifications, and database seeding
- Enhanced deep links documentation with comprehensive platform-specific setup, domain verification, and NFC integration
- Expanded push notifications docs with FCM implementation, platform-specific configurations, and data payload handling
- Added database seeding section explaining how to use migrations for initial data setup
- Updated various documentation files with improved clarity and additional configuration examples
- Fixed broken links and improved navigation structure
@@ -12,7 +12,7 @@ There are two types of link integrations you can configure:
12
12
-**Deep Links** (myapp://some/path)
13
13
-**Universal Links (iOS)** and **App Links (Android)** (https://example.net/some/path)
14
14
15
-
Each method has its use case, and NativePHP allows you to configure and handle both easily.
15
+
Each method has its use case, and NativePHP handles all the platform-specific configuration automatically when you provide the proper environment variables.
16
16
17
17
---
18
18
@@ -26,7 +26,6 @@ For example:
26
26
myapp://profile/123
27
27
```
28
28
29
-
30
29
When a user taps a deep link, the mobile operating system detects the custom scheme and opens your app directly.
// This works for both deep links and universal/app links
96
187
});
97
188
```
98
189
190
+
## Testing and Development
191
+
192
+
### Testing Limitations
193
+
194
+
-**Development builds**: Universal/App Links may not work in development
195
+
-**Production required**: Full testing requires production builds and domain verification
196
+
-**Simulator**: iOS Simulator may not handle Universal Links correctly
197
+
198
+
### Best Practices
199
+
200
+
1.**Test both link types** - Ensure deep links and universal/app links work
201
+
2.**Verify domain files** - Check that .well-known files are accessible
202
+
3.**Production testing** - Test universal/app links with production builds
203
+
4.**Fallback handling** - Ensure your website handles users without the app
204
+
5.**Analytics tracking** - Monitor which link types are most effective
205
+
99
206
## NFC
207
+
100
208
NFC is a technology that allows you to read and write NFC tags.
101
209
102
210
NativePHP handles NFC tag "bumping" just like a Universal/App Link.
103
-
You can use a tool like [NFC Tools](https://www.wakdev.com/en/) to test write NFC tags.
211
+
You can use a tool like [NFC Tools](https://www.wakdev.com/en/) to write NFC tags.
104
212
105
213
Set the url to a Universal/App Link and the tag will be written to the NFC tag.
106
214
"Bumping" the tag will open the app.
107
215
216
+
### NFC Configuration
217
+
218
+
NFC tags work best with Universal/App Links because:
219
+
- They provide fallback to website if app isn't installed
220
+
- They work across different devices and platforms
221
+
- They provide a better user experience than custom schemes
222
+
223
+
```bash
224
+
# Write this URL to an NFC tag
225
+
https://example.net/product/456
226
+
227
+
# When "bumped":
228
+
# - Opens your app if installed
229
+
# - Opens website if not installed
230
+
```
231
+
232
+
## Troubleshooting
233
+
234
+
### Common Issues
235
+
236
+
1.**Universal Links not working**: Check domain verification files
237
+
2.**Deep links not opening**: Verify URL scheme configuration
238
+
3.**Wrong app opening**: Check for conflicting URL schemes
239
+
4.**iOS Smart Banner**: Ensure proper app store metadata
240
+
241
+
### Debug Steps
242
+
243
+
1.**Verify .env configuration** - Check scheme and host values
244
+
2.**Test deep links first** - Easier to debug than universal links
245
+
3.**Check domain files** - Ensure .well-known files are accessible
246
+
4.**Use production builds** - Development builds may not work correctly
247
+
5.**Monitor app logs** - Check for link handling errors
108
248
249
+
Remember that NativePHP handles all the complex platform-specific setup automatically - you just need to configure your domain and environment variables correctly.
0 commit comments