Skip to content

[Bug]: requestConsentInfo fails when options are undefined #8

Description

@becvert

Framework

Cordova CLI

Plugin Version

2.0.0

Android & Java Version

iOS 8.1.1

Current Behavior

When I call admobNextGen.requestConsentInfo(undefined, success, failure), failure is called.
I expect a success callback instead even with undefined options

Steps to Reproduce

  1. latest plugin and cordova iOS 8.1.1
  2. call admobNextGen.requestConsentInfo(undefined)
  3. error is caught and the failure callback is called

Error Log / Stack Trace

[NSNull options] unrecognized selector send to instance

https://github.com/swaplab-engine/cordova-plugin-admob-nextgen/blob/87e48400eacbae2082bde5d23a6fff41d1153b94/src/ios/ConsentExecutor.m#L24

Config File (Optional)

Code of Conduct

  • I have searched the existing issues and this is not a duplicate.
  • I have provided the error logs and environment details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions