Skip to content

Problem with DeviceMock #30

@Ritzlgrmft

Description

@Ritzlgrmft

At least with Ionic 4.x and @ionic-native 5.x, the DeviceMock implementation with plain variables like

cordova: string;

does not work. There gets called always the original implementation.

But the following works for me:

get cordova(): string {
	return "";
}

I assume this happens since the properties are originally marked with the decorator @CordovaProperty...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions