Last updated:
0 purchases
apptive grid user management
ApptiveGrid UserManagement #
Setup #
Add a ApptiveGridUserManagment to your Widget tree. Ideally close to the ApptiveGrid Widget
ApptiveGrid(
child: ApptiveGridUserManagement(
group: 'YOUR_GROUP_ID',
onChangeEnvironment: (newEnvironment) async {},
confirmAccountPrompt: (confirmationWidget) {
// Show confirmationWidget
},
onAccountConfirmed: (loggedIn) {
// Handle account confirmed
},
child: MyApp(),,
),
)
copied to clipboard
Android #
Add the following entries to your AndroidManifest to be able to open confirmation links
<activity>
...
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:host="alpha.apptivegrid.de"
android:pathPattern="/auth/YOUR_GROUP_ID/confirm/.*"
android:scheme="YOUR_SCHEME"/>
<data
android:host="beta.apptivegrid.de"
android:pathPattern="/auth/YOUR_GROUP_ID/confirm/.*"
android:scheme="YOUR_SCHEME"/>
<data
android:host="app.apptivegrid.de"
android:pathPattern="/auth/YOUR_GROUP_ID/confirm/.*"
android:scheme="YOUR_SCHEME"/>
</intent-filter>
</activity>
copied to clipboard
##iOS
Do the following to open confirmation Links
Using Universal Links (https as scheme) Runner.entitlements
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:alpha.apptivegrid.de</string>
<string>applinks:beta.apptivegrid.de</string>
<string>applinks:app.apptivegrid.de</string>
</array>
copied to clipboard
Using custom schema in Info.plist
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>YOUR_SCHEMA</string>
</array>
</dict>
</array>
copied to clipboard
Show Login/Registration Content #
On your Screens add a ApptiveGridUserManagementContent Widget to your layout. That's all. The themeing will be taken from your App's theme
Card(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: ApptiveGridUserManagementContent(
initialContentType: ContentType.login,
onLogin: () {
context.go('/home');
},
),
)
copied to clipboard
Delete Account #
To comply with the Apple Review Guidelines Apps that offer Account Creation also require to provide an option to delete the account. More Information
This package provides widgets to show the delete account option.
// As a ListTile
DeleteAccount.listTile(
onAccountDeleted: () {
// Go to Login Screen, etc...
},
),
// As a TextButton
DeleteAccount.textButton(
onAccountDeleted: () {
// Go to Login Screen, etc...
},
),
// As a Custom Widget
// Note that gesture detectors on your custom widget will be ignored
DeleteAccount(
onAccountDeleted: () {
// Go to Login Screen, etc...
},
child: CustomWidget(),
),
copied to clipboard
Clicking on one of these Widgets will show users a dialog where they can confirm that they want to delete their account.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.