mapbox / mapbox/mapbox-plugins-android

The notificationOptions object is not optional as stated in the docs

Open
#782 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug offline-plugin
Dominant language
Java
Stars
242
Forks
116
PR merge metrics
No merged PRs in 30d

Description

That documentation states that the notificationOptions object is optional.
https://www.mapbox.com/android-docs/plugins/overview/offline/#add-the-offline-plugin

When you run the application without notificationOptions, you see:

java.lang.IllegalStateException: Missing required properties: notificationOptions

It should be possible to use the plugin without displaying notifications.

cc @tobrun

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the offline plugin documentation at the linked URL and trace how the notificationOptions value is handled when omitted. Reproduce the reported IllegalStateException, then verify that the plugin can run without displaying notifications and that the documentation matches the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.