Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working for some devices with same android version #161

Open
parcious opened this issue Apr 30, 2024 · 2 comments
Open

Not Working for some devices with same android version #161

parcious opened this issue Apr 30, 2024 · 2 comments

Comments

@parcious
Copy link

I am using this plugin to add events in my Calender App
its working fine for most of the mobile but for some devices (oneplus Android 14 )
nothing happening
can you tell me the reason why this behavior

Add2Calendar.addEvent2Cal(buildEvent(i))

Event buildEvent(CalendarEventList list) {
return Event(
title: list.summary ?? '',
description: list.description ?? "",
startDate: DateTime.parse(list.start.toString().contains('dateTime')
? list.start['dateTime'].toString()
: list.start['date'].toString().substring(0, 10))
.toLocal(),
endDate: DateTime.parse(list.end.toString().contains('dateTime')
? list.end['dateTime'].toString()
: list.end['date'].toString().substring(0, 10))
.toLocal(),
);
}

@parcious parcious changed the title Not Working for some devices with same ios version Not Working for some devices with same android version Apr 30, 2024
@Lemeshianos
Copy link

Lemeshianos commented May 8, 2024

I am facing the same issue. It works fine on Samsung devices.
It doesn't work on Xiaomi phones, pocophones and onePlus.
The function returns false when calling to create the event

@gmarizy
Copy link

gmarizy commented Nov 27, 2024

It wasn't working for me either, but worked again after updating the AndroidManifest.xml as stated on readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants