Skip to content

Commit

Permalink
development notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
raphi777 committed Jun 11, 2021
1 parent 2060cb1 commit 406d868
Show file tree
Hide file tree
Showing 9,571 changed files with 1,398,563 additions and 8 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 1 addition & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.uth.up_to_health">
<application
android:name=".Application"
android:label="up_to_health"
android:icon="@mipmap/ic_launcher">
<activity
Expand Down Expand Up @@ -30,8 +31,6 @@
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
Expand Down
34 changes: 34 additions & 0 deletions android/app/src/main/kotlin/com/uth/up_to_health/Application.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.uth.up_to_health
import io.flutter.app.FlutterApplication
import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback
import io.flutter.view.FlutterMain
import io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService

import android.os.Build
import android.app.NotificationManager
import android.app.NotificationChannel

class Application : FlutterApplication(), PluginRegistrantCallback {

override fun onCreate() {
super.onCreate()
FlutterFirebaseMessagingBackgroundService.setPluginRegistrant(this);
FlutterMain.startInitialization(this)
}

override fun registerWith(registry: PluginRegistry?) {
}

fun createNotificationChannels() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val name = "groupChannel";
val descriptionText = "This is the group channel";
val importance = NotificationManager.IMPORTANCE_HIGH;
val mChannel = NotificationChannel("59054", name, importance);
mChannel.description = descriptionText;
val notificationManager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager;
notificationManager.createNotificationChannel(mChannel);
}
}
}
15 changes: 15 additions & 0 deletions function/node_modules/.bin/arborist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions function/node_modules/.bin/arborist.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions function/node_modules/.bin/arborist.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions function/node_modules/.bin/compileProtos

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions function/node_modules/.bin/compileProtos.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions function/node_modules/.bin/compileProtos.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions function/node_modules/.bin/gcs-upload

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions function/node_modules/.bin/gcs-upload.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions function/node_modules/.bin/gcs-upload.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions function/node_modules/.bin/gp12-pem

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions function/node_modules/.bin/gp12-pem.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions function/node_modules/.bin/gp12-pem.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions function/node_modules/.bin/installed-package-contents

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions function/node_modules/.bin/installed-package-contents.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions function/node_modules/.bin/installed-package-contents.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions function/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions function/node_modules/.bin/mime.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions function/node_modules/.bin/mime.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions function/node_modules/.bin/mkdirp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions function/node_modules/.bin/mkdirp.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 406d868

Please sign in to comment.