@@ -59,31 +59,31 @@ implementation 'com.github.araditc:Arad.Push.Android.SDK:TAG'
59
59
60
60
> ```kotlin
61
61
> var devicename = DeviceUtils .getDeviceName()
62
- > var packageName = DeviceUtils .getPackageName(this )
63
- > var deviceVersion = DeviceUtils .getVersion(this )
64
- > // ================================ FCM Implementation ======================================
65
- > Thread {
66
- > val token = Arad .getToken()
67
- > Log .i(" Fcm_Token" , token.toString())
68
- > }.start()
62
+ > var packageName = DeviceUtils .getPackageName(this )
63
+ > var deviceVersion = DeviceUtils .getVersion(this )
64
+ > // ================================ FCM Implementation ======================================
65
+ > Thread {
66
+ > val token = Arad .getToken()
67
+ > Log .i(" Fcm_Token" , token.toString())
68
+ > }.start()
69
69
>
70
- > Arad .SetIToken (object : IToken {
71
- > override fun newToken (token : String ) {
72
- > Log .i(" APN" , " This Method Return New Token If Generate From FCM" )
73
- > }
74
- > })
75
- > // ================================ APN Implementation ======================================
76
- > // This Method Call For Message
77
- > Arad .getMessage(this @MainActivity);
78
- > Arad .setIMessage(object : IMessage {
79
- > override fun MessageReceive (payload : String ) {
80
- > Log .i(" APN" , " Message Receive If Message Exist For This User In Server" )
81
- > }
82
- > })
83
- > Arad .setIWakeUp(object : IWakeUp {
84
- > override fun WakeUp (wakeUp : Boolean ) {
85
- > Log .i(" APN" , " Wake Up App From FCM For Get Message From APN" )
86
- > Arad .getMessage(this @MainActivity)
70
+ > Arad .SetIToken (object : IToken {
71
+ > override fun newToken (token : String ) {
72
+ > Log .i(" APN" , " This Method Return New Token If Generate From FCM" )
73
+ > }
74
+ > })
75
+ > // ================================ APN Implementation ======================================
76
+ > // This Method Call For Message
77
+ > Arad .getMessage(this @MainActivity)
78
+ > Arad .setIMessage(object : IMessage {
79
+ > override fun MessageReceive (payload : String ) {
80
+ > Log .i(" APN" , " Message Receive If Message Exist For This User In Server" )
81
+ > }
82
+ > })
83
+ > Arad .setIWakeUp(object : IWakeUp {
84
+ > override fun WakeUp (wakeUp : Boolean ) {
85
+ > Log .i(" APN" , " Wake Up App From FCM For Get Message From APN" )
86
+ > Arad .getMessage(this @MainActivity)
87
87
> }
88
88
> })
89
89
> ```
@@ -106,8 +106,8 @@ implementation 'com.github.araditc:Arad.Push.Android.SDK:TAG'
106
106
107
107
## Events
108
108
109
- | Event | Info |
110
- |-------------------- |---------------------------------------------- |
111
- | ** MessageReceive ** | trigger when a message received from server |
112
- | ** NewToken ** | trigger when a new token from fcm |
113
- | ** WakeUp ** | trigger when a new token from fcm |
109
+ | Event | Info |
110
+ |-------------------- |-------------------------------------------- - |
111
+ | ** MessageReceive ** | trigger when a message received from server |
112
+ | ** NewToken ** | trigger when a new token from fcm |
113
+ | ** WakeUp ** | trigger when a new message from fcm |
0 commit comments