adds firebase connection and notifications

- notification handler pushes background and
  foreground notifications to the phone directly
- firebase connection pushes remote notifications
  in background and foreground
- firebase unique token currently logged only, should
  be send directly to server via rest
This commit is contained in:
2021-12-30 13:08:52 +01:00
parent 51bf245f00
commit 9ea64fb460
28 changed files with 179 additions and 142 deletions

View File

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.bump.ui.MainActivity">
tools:context="com.maenle.bump.ui.MainActivity">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"

View File

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.bump.ui.SecondFragment">
tools:context="com.maenle.bump.ui.SecondFragment">
<!--androidx.camera.view.PreviewView
android:id="@+id/viewFinder"

View File

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.bump.ui.FirstFragment">
tools:context="com.maenle.bump.ui.FirstFragment">
<TextView
android:id="@+id/textview_first"

View File

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.bump.ui.SecondFragment">
tools:context="com.maenle.bump.ui.SecondFragment">
<androidx.camera.view.PreviewView
android:id="@+id/viewFinder"

View File

@ -1,7 +1,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.maenle.bump.com.example.bump.ui.MainActivity">
tools:context="com.maenle.bump.ui.MainActivity">
<item
android:id="@+id/action_settings"
android:orderInCategory="100"

View File

@ -7,7 +7,7 @@
<fragment
android:id="@+id/FirstFragment"
android:name="com.example.bump.ui.FirstFragment"
android:name="com.maenle.bump.ui.FirstFragment"
android:label="@string/first_fragment_label"
tools:layout="@layout/fragment_first">
@ -17,7 +17,7 @@
</fragment>
<fragment
android:id="@+id/SecondFragment"
android:name="com.example.bump.ui.SecondFragment"
android:name="com.maenle.bump.ui.SecondFragment"
android:label="@string/second_fragment_label"
tools:layout="@layout/fragment_second">
@ -27,7 +27,7 @@
</fragment>
<fragment
android:id="@+id/CameraFragment"
android:name="com.example.bump.ui.CameraFragment"
android:name="com.maenle.bump.ui.CameraFragment"
android:label="@string/camera_fragment_label"
tools:layout="@layout/fragment_camera">

View File

@ -18,4 +18,7 @@
<string name="bump_notification_channel_id">bump_id</string>
<string name="snooze">Snooze</string>
<string name="bump_notification_channel_name">Bump</string>
<string name="notification">This is a notification</string>
<string name="message_subscribed">Subscribed to Channel</string>
<string name="message_subscribe_failed">Could not subscribe</string>
</resources>