You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am Using flutter one signal package 3.5.4
everything was working Perfectly until i upgraded flutter to version 3.27.4
Now I Can no Longer build my app
using Flutter bulid apk or build appbundle results in an error message
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':onesignal_flutter:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR: G:\Nxt-Level\Mobile Apps\hatrick\build\onesignal_flutter\intermediates\merged_res\release\values\values.xml:2657: AAPT: error: resource android:attr/lStar not found.
Upgrading to version 5.2.9 Solves the Problem but
it creates another one ( Which is the main reason why i was using the 3.5.4 version) and the problem is
if i received a notification while the app is not open (completely closed) upon clicking i expect the app to wake and open
but it doesn't and i need to click on the notification once again
Hi @tazy-dev, the android:attr/lStar issue looks related to some compileSdk versions. I recommend using v5.x.x of this SDK.
Upgrading to version 5.2.9 Solves the Problem but
it creates another one ( Which is the main reason why i was using the 3.5.4 version) and the problem is
if i received a notification while the app is not open (completely closed) upon clicking i expect the app to wake and open
but it doesn't and i need to click on the notification once again
For now Iam only developing it for android
So yeah only android...
Strangely as I said before when I was working with v 3.5.4 didn't have this problem...
But now it's happening and I don't know why
Clicking on a notification when app is off won't wake the application and open the notification
And clicking on the notification again is needed
I am Using flutter one signal package 3.5.4
everything was working Perfectly until i upgraded flutter to version 3.27.4
Now I Can no Longer build my app
using Flutter bulid apk or build appbundle results in an error message
FAILURE: Build failed with an exception.
Execution failed for task ':onesignal_flutter:verifyReleaseResources'.
it creates another one ( Which is the main reason why i was using the 3.5.4 version) and the problem is
if i received a notification while the app is not open (completely closed) upon clicking i expect the app to wake and open
but it doesn't and i need to click on the notification once again
`dart
initOneSignal() {
OneSignal.Debug.setLogLevel(
OSLogLevel.error,
);
OneSignal.initialize (AppConstants.oneSignalAppID);
OneSignal.Notifications.requestPermission(true);
}
setupNotification(BuildContext context) {
OneSignal.Notifications.addClickListener((openedResult) {
PodcastEntity podcastEntity = PodcastModel.fromJson(
jsonDecode(
openedResult.notification.additionalData!["podcast"],
),
).toEntity;
context.read().add(
NotificationClickedEvent(
entity: podcastEntity,
),
);
});
}
`
The text was updated successfully, but these errors were encountered: