Coder Social home page Coder Social logo

android's People

Contributors

connyduck avatar dependabot[bot] avatar p1gp1g avatar poussinou avatar tonytonyistony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

android's Issues

Repeated notifications when there is a connection issue

Got some connection issues with my nextcloud instance since yesterday.
The notification of nextpush is very annoying (and prevents disabling it)

  1. The notification occurs every ~second hiding the menu options to logout from nextpush
  2. When clicking the notification there is no way to disable it until resolved

only way I found was starting the app settings and kill it

The application does not report an issue when creating the channel when the UnifiedPush provider app is not installed.

As explained in #102 I was puzzled by the application not doing anything useful as I was logged in and when adding channels, nothing happened.

In fact the the application does not report an issue when creating the channel when the Uppush/Unified Push Provider application is not installed on the server.

It would be helpful for new users to notify about this - and possibly also for cases when the application was removed or disabled (incompatible) on the server.

Originally posted by @p1gp1g in #102 (comment)

CNAME entry makes NextPush not work

I have a nextcloud server running NextPush.
If the domain name points has an actual A or AAAA record set everything works fine.
If I set the domain name as CNAME (for dynamicDNS updates) NextPush does not work anymore.
While executing notification test in Element I get the following log:

01-02 13:22:13.461 25099 25099 D LeakCanary: Watching instance of im.vector.app.features.settings.notifications.VectorSettingsNotificationsTroubleshootFragment (im.vector.app.features.settings.notifications.VectorSettingsNotificationsTroubleshootFragment received Fragment#onDestroy() callback) with key bce958e9-d4e3-4ea7-8f30-6f4f749600ac
01-02 13:22:13.475 25099 25220 V AsyncTransactionKt$awaitTransaction: Execute transaction in 18 millis
01-02 13:22:14.704 25099 20910 D TrafficStats: tagSocket(253) with statsTag=0xffffffff, statsUid=-1
01-02 13:22:15.168  1009  1009 I android.hardware.power-service-qti: Power setMode: 5 to: 1
01-02 13:22:15.172  1054  1092 E ANDR-PERF-UTIL: Failed to read /sys/class/mmc_host/mmc0/clk_scaling/enable
01-02 13:22:15.172  1054  1092 E ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/mmc_host/mmc0/clk_scaling/enable
01-02 13:22:15.172  1054  1092 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [11, 4]
01-02 13:22:15.178  2465  2465 D b/223498680: LRV onStateTransitionStart setFreezeVisibility=true, toState=Background
01-02 13:22:15.178  2465  2465 D b/223498680: BaseRecentsViewStateController setState state=Background, alpha=1.0
01-02 13:22:15.179  2465  2465 D b/223498680: LRV onStateTransitionComplete setFreezeVisibility=false, finalState=Background
01-02 13:22:15.179  2465  2465 D b/223498680: RAAF createStateElementAnimation alpha=[0.0]
01-02 13:22:15.179  2465  2465 D b/223498680: RAAF createStateElementAnimation onStart
01-02 13:22:15.187  2465  2465 D b/223498680: RAAF createStateElementAnimation onEnd
01-02 13:22:15.225 25099 25099 E ector.app.debug: Invalid resource ID 0x00000000.
01-02 13:22:15.225  2465  2465 D b/223498680: LRV onStateTransitionStart setFreezeVisibility=true, toState=AllApps
01-02 13:22:15.225 25099 25099 E ector.app.debug: Invalid resource ID 0x00000000.
01-02 13:22:15.226  2465  2465 D b/223498680: BaseRecentsViewStateController setState state=AllApps, alpha=0.0
01-02 13:22:15.226  2465  2465 D b/223498680: LRV onStateTransitionComplete setFreezeVisibility=false, finalState=AllApps
01-02 13:22:15.241 25099 25099 I VectorBaseFragment: onCreate Fragment VectorSettingsNotificationsTroubleshootFragment
01-02 13:22:15.242 25099 25099 I VectorBaseFragment: onCreateView Fragment VectorSettingsNotificationsTroubleshootFragment
01-02 13:22:15.249  1480  1788 E QMI_FW  : qmi_cci_get_ref: ref count increased 2
01-02 13:22:15.249  1480  1521 E QMI_FW  : qmi_cci_get_ref: ref count increased 2
01-02 13:22:15.249 25099 25099 I VectorBaseFragment: onViewCreated Fragment VectorSettingsNotificationsTroubleshootFragment
01-02 13:22:15.251  1679  9225 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:15.252 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:15.252 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:15.252 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:15.252  3224  3299 I ConnectivityReport: signalStrength of #1 updated to 3
01-02 13:22:15.252  1679  9225 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:15.252 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:15.252 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:15.252 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:15.254  2628  2812 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:15.255 25099 25099 I VectorBaseFragment: onResume Fragment VectorSettingsNotificationsTroubleshootFragment
01-02 13:22:15.256  2628  2814 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:15.259  2628  2814 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:15.260  2264  2337 I DataUsageUtils: Subscription is not active: -1
01-02 13:22:15.261  2628  2790 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:15.327  1009  1009 I android.hardware.power-service-qti: Power setMode: 5 to: 0
01-02 13:22:15.447  1679  1829 W UsageStatsService: Unexpected activity event reported! (com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher event : 23 instanceId : 134099559)
01-02 13:22:15.584 25099 25099 D LeakCanary: Watching instance of android.widget.LinearLayout (im.vector.app.features.settings.notifications.VectorSettingsNotificationPreferenceFragment received Fragment#onDestroyView() callback (references to its views should be cleared to prevent leaks)) with key 0a16165c-6b8d-448b-bbd4-730ab8ef9030
01-02 13:22:16.723 25099 20915 D TrafficStats: tagSocket(252) with statsTag=0xffffffff, statsUid=-1
01-02 13:22:17.721  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:17.725 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:17.725 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:18.219  2605  2605 D QtiCarrierConfigHelper: WARNING, no carrier configs on phone Id: 0
01-02 13:22:18.228  2264  9828 D PowerUI : can't show warning due to - plugged: true status unknown: false
01-02 13:22:18.335  1679  2642 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:18.338 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:18.338 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:18.338 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:18.340  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:18.342 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:18.343 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:18.343 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:18.345  1679  2642 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:18.347 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:18.347 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:18.347 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:18.348  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:18.349 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:18.349 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:18.350 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:18.351  1679  2216 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:18.352 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:18.352 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:18.352 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:18.460 25099 25118 D LeakCanary: LeakCanary is currently disabled: LeakCanary.Config.dumpHeap is set to false.
01-02 13:22:18.461 25099 25118 D LeakCanary: LeakCanary is currently disabled: LeakCanary.Config.dumpHeap is set to false.
01-02 13:22:18.463 25099 25118 D LeakCanary: LeakCanary is currently disabled: LeakCanary.Config.dumpHeap is set to false.
01-02 13:22:18.746 25099 20917 D TrafficStats: tagSocket(259) with statsTag=0xffffffff, statsUid=-1
01-02 13:22:18.963  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:18.966 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:18.966 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:18.966 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:18.967  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:18.969 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:18.969 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:18.969 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:19.577  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:19.581 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:19.581 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:19.581 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:19.584  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:19.590 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:19.590 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:19.590 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:19.592  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:19.593 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:19.593 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:19.593 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:19.594  1679  2216 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:19.595 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:19.595 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:19.595 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:20.203  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:20.205 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:20.205 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:20.205 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:20.206  1679  2216 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:20.207 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:20.208 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:20.208 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:20.585 25099 25118 D LeakCanary: LeakCanary is currently disabled: LeakCanary.Config.dumpHeap is set to false.
01-02 13:22:20.764 25099 20928 D TrafficStats: tagSocket(246) with statsTag=0xffffffff, statsUid=-1
01-02 13:22:20.819  1679 11754 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:20.822 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:20.822 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:20.822 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:20.823  1679  2216 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:20.825 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:20.825 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:20.825 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:20.826  1679  9225 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:20.827 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:20.827 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:20.827 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:20.828  1679  9225 I AppsFilter: interaction: PackageSetting{8c6a5da im.vector.app.debug/10206} -> PackageSetting{f4ca286 im.vector.app/10214} BLOCKED
01-02 13:22:20.828 25099 25099 D UnifiedPush: Found distributor with package name im.vector.app.debug
01-02 13:22:20.828 25099 25099 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
01-02 13:22:20.829 25099 25099 D UnifiedPush: Found saved distributor.
01-02 13:22:20.836 25099 20433 V FormattedJsonHttpLogger: --> POST https://matrix.gateway.unifiedpush.org/_matrix/push/v1/notify (218-byte body)
01-02 13:22:21.015 25099 20433 V FormattedJsonHttpLogger: <-- 200 OK https://matrix.gateway.unifiedpush.org/_matrix/push/v1/notify (177ms, 15-byte body)
01-02 13:22:21.280  1679  1819 W ProcessStats: Tracking association SourceState{a4b26cc system/1000 BTopFgs #87278} whose proc state 2 is better than process ProcessState{9e0790f org.kde.kdeconnect_tp/10240 pkg=org.kde.kdeconnect_tp} proc state 3 (23 skipped)
01-02 13:22:21.970  1480  1788 E QMI_FW  : qmi_cci_get_ref: ref count increased 2
01-02 13:22:21.972  1480  1521 E QMI_FW  : qmi_cci_get_ref: ref count increased 2
01-02 13:22:21.984  3224  3299 I ConnectivityReport: signalStrength of #1 updated to 3
01-02 13:22:21.990  2628  2812 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:21.993  2628  2790 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:21.996  2264  2337 I DataUsageUtils: Subscription is not active: -1
01-02 13:22:21.998  2628  2812 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:22.003  2628  2812 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:22.785 25099 20930 D TrafficStats: tagSocket(266) with statsTag=0xffffffff, statsUid=-1
01-02 13:22:24.210  1480  1788 E QMI_FW  : qmi_cci_get_ref: ref count increased 2
01-02 13:22:24.212  1480  1521 E QMI_FW  : qmi_cci_get_ref: ref count increased 2
01-02 13:22:24.223  3224  3299 I ConnectivityReport: signalStrength of #1 updated to 3
01-02 13:22:24.232  2628  2814 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:24.235  2628  2812 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:24.239  2264  2337 I DataUsageUtils: Subscription is not active: -1
01-02 13:22:24.240  2628  2789 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:24.248  2628  2789 D TelephonyProvider: Using old permission behavior for telephony provider compat
01-02 13:22:24.806 25099 20932 D TrafficStats: tagSocket(253) with statsTag=0xffffffff, statsUid=-1
01-02 13:22:25.272  2605  2605 D QtiCarrierConfigHelper: WARNING, no carrier configs on phone Id: 0
01-02 13:22:25.275  2264  2821 D PowerUI : can't show warning due to - plugged: true status unknown: false
01-02 13:22:26.827 25099 20934 D TrafficStats: tagSocket(257) with statsTag=0xffffffff, statsUid=-1
01-02 13:22:26.926  9028  9071 E VLC     : [000000783d13fd00/236f] libvlc renderer discovery: mDNS entry callback error: Operation not permitted
01-02 13:22:26.927  9028  9065 E VLC     : [000000783d134fc0/2369] libvlc services discovery: mDNS entry callback error: Operation not permitted
01-02 13:22:28.857 25099 20936 D TrafficStats: tagSocket(249) with statsTag=0xffffffff, statsUid=-1

The only weird thing I can see is that it tries to connect to matrix.gateway.unifiedpush.org instead of the selected pusher, but I have no idea why it does what it does.

A few more information:

  1. My domain CNAMEs a noip.com domain, which has an A record of 127.0.0.1 (because you cannot disable it) and an AAAA record of my actual IPv6
  2. I tried using an https proxy before (feste-ip.net, making IPv6 only domains reachable via IPv4), which behaved the same way, though I did not do a logcat. If needed I can provide this as well.

If you need anything else just let me know.

Ntfy and Nextpush

Hey,
What are the differences between Nextpush and ntfy. I'm a little bit surprised that I have to install Nextpush to make my notifications working. Why Talk doesnt work with ntfy ?
Bastien

NextPush crashes instead of sending RegistrationFailed when not logged in

FATAL EXCEPTION: main
E/AndroidRuntime(15961): Process: org.unifiedpush.distributor.nextpush, PID: 15961
E/AndroidRuntime(15961): java.lang.RuntimeException: Unable to start receiver org.unifiedpush.distributor.nextpush.receivers.RegisterBroadcastReceiver: kotlin.UninitializedPropertyAccessException: lateinit property ssoAccount has not been initialized
E/AndroidRuntime(15961):        at android.app.ActivityThread.handleReceiver(ActivityThread.java:3798)
E/AndroidRuntime(15961):        at android.app.ActivityThread.access$1400(ActivityThread.java:220)
E/AndroidRuntime(15961):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1871)
E/AndroidRuntime(15961):        at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(15961):        at android.os.Looper.loop(Looper.java:214)
E/AndroidRuntime(15961):        at android.app.ActivityThread.main(ActivityThread.java:7403)
E/AndroidRuntime(15961):        at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15961):        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/AndroidRuntime(15961):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
E/AndroidRuntime(15961): Caused by: kotlin.UninitializedPropertyAccessException: lateinit property ssoAccount has not been initialized
E/AndroidRuntime(15961):        at org.unifiedpush.distributor.nextpush.account.AccountUtilsKt.getSsoAccount(AccountUtils.kt:30)
E/AndroidRuntime(15961):        at org.unifiedpush.distributor.nextpush.api.ApiUtilsKt.cApi(ApiUtils.kt:54)
E/AndroidRuntime(15961):        at org.unifiedpush.distributor.nextpush.api.ApiUtilsKt.apiCreateApp(ApiUtils.kt:164)
E/AndroidRuntime(15961):        at org.unifiedpush.distributor.nextpush.receivers.RegisterBroadcastReceiver.onReceive(RegisterBroadcastReceiver.kt:34)
E/AndroidRuntime(15961):        at android.app.ActivityThread.handleReceiver(ActivityThread.java:3789)
E/AndroidRuntime(15961):        ... 8 more

I think the title is what is happening, though I haven't looked too deep into this.

Basic instructions on how to use

Hi there,
I have nextcloud working fine, and the Unified Push Provider app installed on it. On my phone I have Nextcloud Push, Fedilab and Fluffychat installed.

Both the Unified Push Settings on the server and the NextPush settings on the phone app show no applications registered.

I have no idea if I have set things up correctly, or if I've hit a bug, because I haven't been able to find instructions after hours of research, as to how to get started using UnifiedPush. I 've read the pages on UnifiedPush.org, and on FluffyChat and Fedilab's pages, but none of them give a step by step on what needs to be done, even in a general sense.

It would really help to have some very basic instructions in the readme.md file as to how to get started, eg:

  1. Install Unified Push Provider app in your Nextcloud server instance
  2. Install Nextcloud Push app on an Android phone from Google Play or FDroid
  3. Make sure you have one or more UnifiedPush compatible apps installed on your phone (eg FluffyChat/Fedilab).
  4. ????
  5. You should now be getting UnifiedPush notifications on your phone.

Unclear how this app works - does seem to behave as expected

I've installed the app but other than showing "Notification to run in foreground", I can't find any method to make it useful.

I have NextPush 1.8.1 and Nextcloud 3.26.0 on my phone and Nextcloud Server 27.1.4.

  • I have a permanent notification in my notification list: "Notification to run in foreground" : not sure if I can get rid of this or if this has to be there;
  • When I open Nextpush I have:
    • Nextpush title;
    • Access to menu: Restart Service / Logout / Add notification Channel;
    • Account: You are connected to ...
    • Registered applications - No applications are listed. I've added several notification channels but I do not know how I can see that.

Supplementary question: is there a method to see the registered applications on the Nextcloud Server?

Cryptographic APIs misuses

I'm a PhD student interested in finding security vulnerabilities in open source projects.

We found a total of 17 warnings (indicating potential vulnerabilities) when running the CogniCrypt static analyzer (*) on NextPush - Android(or its library dependencies). We documented each one of these issues in private gists for the sake of confidentiality (non-disclosure).

Can you please let us know whether we can share these gists with you? We are eager to evaluate the perception of developers (e.g. severity of these warnings) and improve NextPush - Android's security, and the quality of the reports of static analysis tools.

(*) https://github.com/CROSSINGTUD/CryptoAnalysis

NextPush shows noitifications for both "Listening" and "Disconnected" at the same time.

I have Nextpush installed on my Nextcloud server, which is using Redis and is available by HTTPS. I have NextPush, Nextcloud, UP-example and Fluffychat installed on my phone.

  • NextPush says it's connected to my user on my Nextcloud.
  • It says that Fluffychat and UP-example are registered with it.
  • It has a notification that says "Listening for incoming notifications" and it also has a second notification that says "NextPush is disconnected" which comes up almost immediately after restarting.
  • I don't seem to get any notifications.
  • UP-example says that it's registered

Any further info I can supply to debug?

After updating the app can no longer find the Nextcloud files app

After updating NextPush via F-Droid it reports the Nextcloud Files app is not installed, despite having previously been successfully connected.

The only workaround I have found so far is to clear data of the NextPush app and login again, but this is not desirable as it means any apps that have been using NextPush get unregistered.

NextPush version 1.4.2
Nextcloud version 3.22.1
Both installed via F-Droid

Notifications when phone offline

Hi,

Sometimes I disable mobile data and wifi on my phone to save battery and reduce radiations. It is obvious there will be no connection.

In such cases NextPush has notifications regarding bad connection which I'd like to avoid. I could disable the notifications but I suspect that by disabling notifications also NextPush behaviour is changed ( not detecting pushes ).

Is there a way to disable notifications but not effect Next Push performance?

Documentation: explain notification configuration

It would be useful to explain what the impact of the "Foreground Service" / "Warning" configuration is.

Regarding warnings: I had serveral notifications about disconnects but they surely rapidly restored. Maybe there could be an option to have less of these.

I always have this:
image

And when checking the configuration:
image

image

image

Battery usage

Since installing and using nextpush for my push notifications (element and fluffychat on the same phone) it's now the app using most of my battery, according to android. Alledgedly it's been "used" for about 12 hours, and I installed and started using it a bit less than 24 hours ago. Android says it responsible for 22% of my battery usage overall. I've set it to "unrestricted" under battery optimization.

Let me know if you want any other debug info. For now it seems like using element + polling is easier on the battery usage.

Alternative login without using the SSO

As mentioned on the review for F-Droid inclusion, it would be nice if the dependency on the Nextcloud app (30M APK) could be lifted in favor of their SSO module. While many who use Nextcloud will have the app installed, others have not (like me) as they e.g. just use Davx⁵ for calendar and addressbook sync on the device – and thus requiring the full Nextcloud app just to have notifications would be quite some overkill.

An examples with the same issue would be Nextcloud Maps, if you want something to compare: it started requiring the Nextcoud app and in the process switched to the SSO lib.

Thanks for considering!

Crash on trying to register

I set up Unified push on my Nextcloud and logged in with my Nexcloud account in NextPush. But every time I try to register with Up-Example, NextPush crahes.

here is a logcat:

25380 06-22 12:36:04.719 19131 19131 D UnifiedPush: Found distributor with package name org.unifiedpush.distributor.nextpush
25381 06-22 12:36:04.719 19131 19131 D UnifiedPush: Found saved distributor.
25382 06-22 12:36:04.726 28065 28065 I RegisterBroadcastReceiver: REGISTER
25383 06-22 12:36:04.737 28065 28065 D AndroidRuntime: Shutting down VM
25384 06-22 12:36:04.738 28065 28065 E AndroidRuntime: FATAL EXCEPTION: main
25385 06-22 12:36:04.738 28065 28065 E AndroidRuntime: Process: org.unifiedpush.distributor.nextpush, PID: 28065
25386 06-22 12:36:04.738 28065 28065 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver org.unifiedpush.distributor.nextpu      sh.receivers.RegisterBroadcastReceiver: java.lang.NullPointerException
25387 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at android.app.ActivityThread.handleReceiver(ActivityThread.java:4384)
25388 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at android.app.ActivityThread.access$1600(ActivityThread.java:256)
25389 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102)
25390 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
25391 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:201)
25392 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:288)
25393 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7870)
25394 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
25395 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:      548)
25396 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
25397 06-22 12:36:04.738 28065 28065 E AndroidRuntime: Caused by: java.lang.NullPointerException
25398 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at org.unifiedpush.distributor.nextpush.api.ApiUtils.cCreateApp(ApiUtils.kt:188)
25399 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at org.unifiedpush.distributor.nextpush.api.ApiUtils.access$cCreateApp(ApiUtils.      kt:30)
25400 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at org.unifiedpush.distributor.nextpush.api.ApiUtils$apiCreateApp$1.invoke(ApiUt      ils.kt:174)
25401 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at org.unifiedpush.distributor.nextpush.api.ApiUtils$apiCreateApp$1.invoke(ApiUt      ils.kt:173)
25402 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at org.unifiedpush.distributor.nextpush.api.ApiUtils.cApi(ApiUtils.kt:49)
25403 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at org.unifiedpush.distributor.nextpush.api.ApiUtils.apiCreateApp(ApiUtils.kt:17      3)
25404 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at org.unifiedpush.distributor.nextpush.receivers.RegisterBroadcastReceiver.onRe      ceive(RegisterBroadcastReceiver.kt:71)
25405 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        at android.app.ActivityThread.handleReceiver(ActivityThread.java:4375)
25406 06-22 12:36:04.738 28065 28065 E AndroidRuntime:        ... 9 more

Push notification spam “Disconnected”

Behavior:
The app starts spamming “Disconnected” Push notification. (Multiple a second)

It either stops after approx half a minute or after killing the app and restart it.

Possible issue:
Network reconnects (switching from WiFi to mobile / reconnection WiFi / reconnecting VPN) seem to trigger the issue.

Happy to answer any questions.

Logcat: (I hope it's the correct one, I am inexperienced with Logcat)
Happened twice during this Logcat snipped.

<<< log_count = 47 >>>
[01-28 13:43:54.185 1396:3531 I/ActivityTaskManager]
START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.unifiedpush.distributor.nextpush/.activities.MainActivity bnds=[32,1127][235,1434]} from uid 10161

[01-28 13:43:54.324 1396:1491 I/ActivityTaskManager]
Displayed org.unifiedpush.distributor.nextpush/.activities.MainActivity: +133ms

[01-28 13:43:55.879 1396:2005 D/ConnectivityService]
releasing NetworkRequest [ TRACK_DEFAULT id=656, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] (release request)

[01-28 13:43:55.886 1396:3812 D/ConnectivityService]
requestNetwork for uid/pid:10284/6567 NetworkRequest [ TRACK_DEFAULT id=669, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ]

[01-28 13:43:55.886 1396:2041 D/Ethernet]
got request NetworkRequest [ TRACK_DEFAULT id=669, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] with score 101 and providerId -2

[01-28 13:43:55.888 1396:2000 D/UntrustedWifiNetworkFactory]
got request NetworkRequest [ TRACK_DEFAULT id=669, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] with score 101 and providerId -2

[01-28 13:43:55.888 1396:2000 D/WifiNetworkFactory]
got request NetworkRequest [ TRACK_DEFAULT id=669, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] with score 101 and providerId -2

[01-28 13:43:55.888 2520:2520 D/PhoneSwitcherNetworkRequstListener]
got request NetworkRequest [ TRACK_DEFAULT id=669, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] with score 101 and providerId -2

[01-28 13:44:36.217 14167:14167 D/UP-Registration]
Found distributor with package name org.unifiedpush.distributor.nextpush

[01-28 13:44:36.557 14167:14167 D/UP-Registration]
Found distributor with package name org.unifiedpush.distributor.nextpush

[01-28 13:44:54.914 14349:14349 D/UP-Registration]
Found distributor with package name org.unifiedpush.distributor.nextpush

[01-28 13:44:54.915 14349:14349 D/UP-Registration]
Found distributor with package name org.unifiedpush.distributor.nextpush

[01-28 13:45:24.322 14167:14167 D/UP-Registration]
Found distributor with package name org.unifiedpush.distributor.nextpush

[01-28 13:45:37.132 14167:14167 D/UP-Registration]
Found distributor with package name org.unifiedpush.distributor.nextpush

[01-28 13:45:38.223 14167:14167 D/UP-Registration]
Found distributor with package name org.unifiedpush.distributor.nextpush

[01-28 13:45:38.338 14167:14167 D/UP-Registration]
Found distributor with package name org.unifiedpush.distributor.nextpush

[01-28 13:55:20.253 6567:6567 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) identical 1 line

[01-28 13:55:20.941 6567:6567 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) identical 1 line

[01-28 13:55:21.665 6567:16197 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) d.hiajen.de/... identical 1 line

[01-28 13:55:21.847 6567:6581 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) FinalizerDaemon identical 1 line

[01-28 13:55:23.001 6567:16197 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) d.hiajen.de/... identical 1 line

[01-28 13:55:24.363 1396:1396 D/NotificationService]
0|org.unifiedpush.distributor.nextpush|51215|null|10284: granting content://settings/system/notification_sound

[01-28 13:55:24.364 1396:1396 D/NotificationService]
0|org.unifiedpush.distributor.nextpush|51215|null|10284: granting content://settings/system/notification_sound

[01-28 13:55:24.390 2101:2101 W/NotifBindPipeline]
Row is not set so pipeline will not run. notif = 0|org.unifiedpush.distributor.nextpush|51215|null|10284

[01-28 13:57:52.087 6567:6567 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) identical 1 line

[01-28 13:58:01.766 6567:6567 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) identical 1 line

[01-28 13:58:02.054 6567:16606 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) d.hiajen.de/... identical 1 line

[01-28 14:08:10.860 1396:29309 I/ActivityTaskManager]
START u0 {flg=0x24000000 cmp=org.unifiedpush.distributor.nextpush/.activities.MainActivity} from uid 10284

[01-28 14:08:10.864 1396:29309 W/ActivityTaskManager]
startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { flg=0x24000000 cmp=org.unifiedpush.distributor.nextpush/.activities.MainActivity }

[01-28 14:08:11.219 6567:6567 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) identical 1 line

[01-28 14:08:11.450 6567:6581 I/chatty]
uid=10284(org.unifiedpush.distributor.nextpush) FinalizerDaemon identical 1 line

[01-28 14:08:14.643 1396:1485 W/ActivityTaskManager]
Activity top resumed state loss timeout for ActivityRecord{23fc67c u0 org.unifiedpush.distributor.nextpush/.activities.MainActivity t15216}

[01-28 14:08:14.643 1396:1485 W/ActivityTaskManager]
Activity pause timeout for ActivityRecord{23fc67c u0 org.unifiedpush.distributor.nextpush/.activities.MainActivity t15216}

[01-28 14:08:16.138 6567:6567 E/AndroidRuntime]
FATAL EXCEPTION: main
Process: org.unifiedpush.distributor.nextpush, PID: 6567
java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw an exception; no stack trace available

[01-28 14:08:16.141 1396:20463 W/ActivityTaskManager]
  Force finishing activity org.unifiedpush.distributor.nextpush/.activities.MainActivity

[01-28 14:08:16.444 1396:1994 I/ActivityManager]
Process org.unifiedpush.distributor.nextpush (pid 6567) has died: fg +50 FGS 

[01-28 14:08:16.444 1396:13161 D/ConnectivityService]
ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=669, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ], android.os.BinderProxy@8bcf4a0)

[01-28 14:08:16.444 1396:2005 D/ConnectivityService]
releasing NetworkRequest [ TRACK_DEFAULT id=669, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] (release request)

[01-28 14:08:16.444 1396:1994 W/ActivityManager]
Scheduling restart of crashed service org.unifiedpush.distributor.nextpush/.services.StartService in 1000ms for start-requested

[01-28 14:08:17.468 1396:1493 I/ActivityManager]
Start proc 17244:org.unifiedpush.distributor.nextpush/u0a284 for service {org.unifiedpush.distributor.nextpush/org.unifiedpush.distributor.nextpush.services.StartService}

[01-28 14:08:17.532 1396:2417 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service org.unifiedpush.distributor.nextpush/.services.StartService

[01-28 14:08:17.534 17244:17244 I/TetheringManager]
registerTetheringEventCallback:org.unifiedpush.distributor.nextpush

[01-28 14:08:17.536 1396:13161 D/ConnectivityService]
requestNetwork for uid/pid:10284/17244 NetworkRequest [ TRACK_DEFAULT id=679, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ]

[01-28 14:08:17.537 1396:2041 D/Ethernet]
got request NetworkRequest [ TRACK_DEFAULT id=679, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] with score 101 and providerId -2

[01-28 14:08:17.537 1396:2000 D/UntrustedWifiNetworkFactory]
got request NetworkRequest [ TRACK_DEFAULT id=679, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] with score 101 and providerId -2

[01-28 14:08:17.537 1396:2000 D/WifiNetworkFactory]
got request NetworkRequest [ TRACK_DEFAULT id=679, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] with score 101 and providerId -2

[01-28 14:08:17.537 2520:2520 D/PhoneSwitcherNetworkRequstListener]
got request NetworkRequest [ TRACK_DEFAULT id=679, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10284 AdministratorUids: [] RequestorUid: 10284 RequestorPackageName: org.unifiedpush.distributor.nextpush] ] with score 101 and providerId -2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.