Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
0f60e406
Commit
0f60e406
authored
Mar 30, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix manifest, fix service
parent
54f73773
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
31 deletions
+37
-31
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+19
-17
RoomParkMessageService.kt
...om/biganto/visual/roompark/data/RoomParkMessageService.kt
+18
-14
No files found.
app/src/main/AndroidManifest.xml
View file @
0f60e406
...
...
@@ -14,10 +14,23 @@
android:screenOrientation=
"userPortrait"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme.Launch"
>
<activity
android:name=
".base.RoomParkMainActivity"
android:configChanges=
"fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:windowSoftInputMode=
"stateHidden|adjustPan"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<service
android:name=
".data.RoomParkMessageService"
android:enabled=
"true"
android:exported=
"false"
>
android:exported=
"true"
android:permission=
"com.google.android.c2dm.permission.SEND"
>
<intent-filter>
<action
android:name=
"com.google.firebase.MESSAGING_EVENT"
/>
...
...
@@ -39,17 +52,6 @@
android:resource=
"@color/colorAccent"
/>
</service>
<activity
android:name=
".base.RoomParkMainActivity"
android:configChanges=
"fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:windowSoftInputMode=
"stateHidden|adjustPan"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
</application>
</manifest>
\ No newline at end of file
app/src/main/java/com/biganto/visual/roompark/data/RoomParkMessageService.kt
View file @
0f60e406
...
...
@@ -7,9 +7,12 @@ import timber.log.Timber
class
RoomParkMessageService
:
FirebaseMessagingService
()
{
}
override
fun
onNewToken
(
p0
:
String
)
{
super
.
onNewToken
(
p0
)
Timber
.
d
(
"NEW TOKEN REGISTERED: ${p0}"
)
}
fun
onMessageReceived
(
remoteMessage
:
RemoteMessage
)
{
// ...
override
fun
onMessageReceived
(
remoteMessage
:
RemoteMessage
)
{
// ...
// TODO(developer): Handle FCM messages here.
// Not getting messages here? See why this may be: https://goo.gl/39bRNJ
Timber
.
d
(
"From: ${remoteMessage.from}"
)
...
...
@@ -28,4 +31,5 @@ fun onMessageReceived(remoteMessage: RemoteMessage) { // ...
}
// Also if you intend on generating your own notifications as a result of a received FCM
// message, here is where that should be initiated. See sendNotification method below.
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment