Please Check This @Rubi_Alerts
Alright… thanks for that
eagerly waiting for the extension
We are Also Waiting for it… and Not just Waiting Eagerly Working on it…
well, good luck guys
using this we have successfully registered Service Means. We got Registered in Special Notification Access.
But while reading Notification Showing Error = Error 908: The permission BIND_NOTIFICATION_LISTENER_SERVICE has been denied. Please enable it in the settings app.
Blocks
Manifest= add permission & NotificationListener Service
<?xml version="1.0" encoding="utf-8" standalone="no"?><uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<application android:debuggable="false" android:icon="@mipmap/ic_launcher" android:label="NotificationReader" android:name="com.google.appinventor.components.runtime.multidex.MultiDexApplication" android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_launcher" android:supportsRtl="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:name="io.kodular.arg6063.NotificationReader.Screen1" android:theme="@style/AppTheme.NoActionBar" android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<service android:name="io.kodular.arg6063.NotificationReader"
android:label="NotificationAlertAccess"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>
<provider android:authorities="io.kodular.arg6063.NotificationReader.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/>
</provider>
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<meta-data android:name="Kodular_RCWTFYP-BYDNKHMWRIT-DNLATT" android:value="_5d30e7ec9c00c2bcb4372b4ff0e344a3.5d30e7ec9c00c2bcb4372b4ff0e344a3-1583503921~BhwOa7EAHRjKwTCGFKYFvLKrRhgotPkn1chzEGT7K2sR7um0G1tJQ0NqUDuXxNWt_"/>
</application>
I’ve enabled it but still getting same error. and this is not the section of Special notification access. & in the section app permission there is no permissions and Not required because that first similar app does not have any permission here.
I believe this line is wrong.
This should be the name of your service.
If this is truly the name of your service you should change the name because it may cause a conflict with the actual “NotificationListenerService”
okk just trying it by changing. Changed Name
When trying to GetNotificationUsing.PackageName Showing Error
Attempt to invoke virtual method ‘java.lang.stringorg.json.JSONArray.toString()’ on a null object reference
I don’t have your code but you could try something like:
If( blahblahblah != null){
//do something
}
maybe this is because empty string… this is not the only problem. main is Bind.Notification Permission.
Now I’m tired going to sleep Good Night/Morning
will share code here. then Challenge will be OpenSource…
Share the code in a PM with @Ken. When you find a solution, just post it here. Some may find this post useful in the future.
Please Give it try if Possible @Ken @Taifun @hammerhai @vknow360
Now Challenge is OpenSource
Here is Test AIA:NotificationReader.aia (11.3 KB)
JAVA Source Code: NotificationListener.java (5.6 KB)
Also we have to Modify Manifest (Available in above post) using Android Studio Editor Then we able to register app in Special Notification Access Permission.
Here Is Github Repository And Details for this Extension :
Blocks we Got using this:
What is your test result?
- Android is Denied to give permission :
BIND_NOTIFICATION_LISTENER_SERVICE - We are able to get Notification access by adding service in manifest
- when we call .GetNotificationByPackageName it showing Error:
Attempt to invoke virtual method ‘java.lang.stringorg.json.JSONArray.toString()’ on a null object reference - GetAllNotification Block returning Empty result may be because of permission
I’m taking a look into this result from the source that you’ve published.
To make updating your source easier from outsiders, create a GitHub Repo from github.com if you’d like. This will clear code up on the community so we don’t have to publish a reply when we update your source.
Here Is Github Repository And Details for this Extension :
Contribute here and give it a try