[BUG #7266] tentatively restricting register() call to Phonegap environment