Enables push notifications for the device.
Syntax
Future<void> enablePush()
Returns
Future<void>- Completes when push notifications have been enabled.
Example
try {
await SfmcSdk.enablePush();
print('Push notifications enabled successfully');
} catch (e) {
print('Failed to enable push notifications: $e');
}