pushportal_package 0.0.3+4 pushportal_package: ^0.0.3+4 copied to clipboard
Push notification project.
Push Portal Plugin for Flutter #
push notification for application IOS and Android.
initializeApp #
await PushPortal.instance.initializeApp(
username: 'username',
password: 'password',
);
can call function #
PushPortal.instance.setCallbackShowFlutterNotification((message) {
print("----\nhandle show flutter notification\n----");
});
PushPortal.instance.setCallbackReceivePayload((message) {
print("----\ncallback Receive Payload\n----");
});
PushPortal.instance.setCallbackInitialMessage((massage) async {
print("----\ncallback Initial Message\n----");
WidgetsBinding.instance.addPostFrameCallback((_) async {
Get.to(const Mailbox());
});
});
function list
- login()
- relogin()
- getFirebaseMessagingToken()
- setBaseUrl()
- setCallbackShowFlutterNotification()
- setCallbackReceivePayload()
- setCallbackInitialMessage()
can call sevice #
final unreadCount = await PushPortal.instance.sevice
.unreadCountNotification(
memberId: memberId, deviceNumber: deviceNumber);
sevices list
- createTokenMember() -> change name to registerTokenMember()
- getNotificationLog()
- openedNotification()
- hideNotification()
- getNotificationLogDetail()
- unreadCountNotification()