Changing default strings
The Notification Plugin uses a set of identifiers and default strings to display messages when processing push notifications. These default strings can be customised by the application. For example, to change the lnurl_pay_metadata_plain_text
, which sets the LNURL-pay text/plain metadata, you can modify it as follows:
Android
In the string.xml
file of the application's res/values
directory, add the key/value pair:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="lnurl_pay_metadata_plain_text">Pay to Custom App</string>
</resources>
You can find the current identifiers and default strings here
iOS
In the Info.plist
file of the NotificationService
target, add the key/value pair:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>lnurl_pay_metadata_plain_text</key>
<string>Pay to Custom App</string>
</dict>
</plist>
You can find the current identifiers and default strings here