access intent from fragment kotlin code example
Example: get intent not working in fragment
// add the getActivity() before getIntent and it should work perfectly
// inside your fragment
Bundle bundle = getActivity().getIntent().getExtras();
// add the getActivity() before getIntent and it should work perfectly
// inside your fragment
Bundle bundle = getActivity().getIntent().getExtras();