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

PlatformException Events.availability on Android #241

Closed
imhafeez opened this issue Jun 18, 2020 · 11 comments
Closed

PlatformException Events.availability on Android #241

imhafeez opened this issue Jun 18, 2020 · 11 comments
Assignees
Labels
more information required The issue requires more information before it can be actioned

Comments

@imhafeez
Copy link

imhafeez commented Jun 18, 2020

When adding events on Android it throws the following error. could anyone please help?

PlatformException(500, NOT NULL constraint failed: Events.availability (code 1299 SQLITE_CONSTRAINT_NOTNULL), null)

@imhafeez imhafeez changed the title PlatformException Events.availability on PlatformException Events.availability on Android Jun 18, 2020
@nickrandolph
Copy link
Contributor

@imhafeez which version of the package are you using?

@nickrandolph nickrandolph added the more information required The issue requires more information before it can be actioned label Jun 18, 2020
@imhafeez
Copy link
Author

I am using device_calendar: ^3.1.0

@nickrandolph
Copy link
Contributor

Can you check which version the .lock file says is being referenced. If still 3.1, can you try the Dev release of 3.2

@imhafeez
Copy link
Author

Screenshot 2020-06-21 at 1 59 54 PM

@andzejsw
Copy link
Contributor

@imhafeez does this error exist on latest dev?

@imhafeez
Copy link
Author

imhafeez commented May 7, 2021

@andzejsw Yes its still accurring. On updating event.

Exception has occurred. PlatformException (PlatformException(500, NOT NULL constraint failed: Events.availability (code 1299) ################################################################# Error Code : 1299 (SQLITE_CONSTRAINT_NOTNULL) Caused By : Abort due to constraint violation. (NOT NULL constraint failed: Events.availability (code 1299)) #################################################################, null, null))

@andzejsw
Copy link
Contributor

andzejsw commented May 7, 2021

@imhafeez Is this happening on example app?

@andzejsw
Copy link
Contributor

andzejsw commented May 7, 2021

Events also have availability arg. Are you sure that when you crate it, it isn't null?

@imhafeez
Copy link
Author

imhafeez commented May 7, 2021

@andzejsw Let me check that.

@imhafeez
Copy link
Author

imhafeez commented May 7, 2021

Thanks @andzejsw. It was availability arg. I was not setting that. It solved.

Also on the device it throws exception on creating calendar. The issue is with calendar colour. I have changed it. and will send you pull request. Please merge it with master branch.

@andzejsw
Copy link
Contributor

andzejsw commented May 7, 2021

@imhafeez I will add changes, that availability should be required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required The issue requires more information before it can be actioned
Projects
None yet
Development

No branches or pull requests

3 participants