There is no built-in function for doing so. You can use the NMEA Sentence Definition and other NMEA references to encode the positional information you receive from PhoneGap and produce a GPRMC-encoded string.
As you likely discovered, there will be items you cannot reliably change to a GPRMC sentence with high accuracy due to device limitations (you never know if they feature a compass heading, for instance).