Custom Attributes on AMP opt-in

Hi! there is a way to add custom attributes for a user which subscribes using an amp page? In regular pages we use webpushr(‘attributes’,{“xxx” : “xxx”}); wich is not initiated in AMP.
Thanks